Search the web
Sign In
New User? Sign Up
SubEthaEdit
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Extracting plain text from .seetext with Applescript   Message List  
Reply | Forward Message #188 of 212 |
Re: Extracting plain text from .seetext with Applescript

--- In SubEthaEdit@yahoogroups.com, Martin Pittenauer <map@...> wrote:

> A simpler way would be to use the plain text copy that is stored
> within the .seetext for convenience. Seetext files are bundles, a kind
> of fancy folder that gets treated like a file by the Finder.
>
> Besides the documents history, its metadata and QuickLook preview, we
> also store a redundant plain text version one can access without
> SubEthaEdit or use for compiling an the like in this folder.
> To access the plain text you can use (for this example) "lua
> test.lua.seetext/plain.txt"

Aha, I tried making a symbolic link called test.lua that pointed to
plain.txt and it works! As often seems to be the case, it has to be a
symbolic link and not just a MacOS alias. I suspected there would be a
simpler way.

> I just tried your script and it worked as intended on my machine. What
> encoding does your lua file usually have? Are you working on Tiger or
> Leopard? Intel or PPC?

It doesn't matter now, but I'm back in the dark ages with a 2004 eMac
PPC running Tiger. I use UTF-8 with CRLF line endings for the Windows
people.

> All the best,
> Martin

Thank you for the prompt replies!
Vaughan





Wed Aug 20, 2008 11:10 pm

ockegheim
Offline Offline
Send Email Send Email

Forward
Message #188 of 212 |
Expand Messages Author Sort by Date

I've been happily coding with SubEtherEdit for years. I'm curious about the SubEther Text format, which I think would great for keeping track of changes over...
Vaughan McAlley
ockegheim
Offline Send Email
Aug 20, 2008
5:02 pm

... I just tried your script and it worked as intended on my machine. What encoding does your lua file usually have? Are you working on Tiger or Leopard? Intel...
Martin Pittenauer
martinpitten...
Offline Send Email
Aug 20, 2008
5:16 pm

... Aha, I tried making a symbolic link called test.lua that pointed to plain.txt and it works! As often seems to be the case, it has to be a symbolic link and...
ockegheim
Offline Send Email
Aug 20, 2008
11:13 pm

A simpler approach for saving from a script would be to just have SubEthaEdit save the document directly. For example, to save your file to the desktop, I'd do...
michael_j_barber
michael_j_ba...
Offline Send Email
Aug 20, 2008
5:52 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help