Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Save file groups in TextWrangler' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save file groups in TextWrangler
Authored by: expiring_frog on Dec 01, '07 06:59:56PM
Thanks for the scripts :). They do indeed work (but see below) and are very useful.

There is one small caveat: My hard drive is called "Macintosh HD" (the Tiger/Leopard default), and the saved filelist contain entries of the form:

file:///Macintosh%20HD/Users/myname/...

For some reason TW can't open filenames of this form (I don't know what happens for folks with different HD names). If you have the same problem, add the following line right after each of the two calls to snr in the main tell block:

set afile to my snr(afile, "/Macintosh%20HD", "")

(Replace with the name of your HD as applicable.)

[ Reply to This | # ]

Save file groups in TextWrangler
Authored by: expiring_frog on Dec 06, '07 07:57:50PM

Or even better (this will hopefully work for any HD name):

set afile to my snr(afile, "file:///", "file:///Volumes/")

[ Reply to This | # ]