View Single Post
Majost
monkey with a tiny cymbal
 
Join Date: Nov 2004
Location: Lost
 
2006-03-24, 06:55

Ooh, I know... an AppleScript Droplet. Just fix the shell path in this script, and save it as an application in AS. I think that this should work. Or at least it will give you enough to run on.

Code:
on run display dialog ("Drag'n'drop text files to un-line-wrap them.") end run on open (txts) repeat with the_file in txts do shell script "/path/to/your/script '" & POSIX path of the_file & "'" end repeat end open
You can also just type in the entire script into the AS file if you don't want to have it in a separate file. Just be careful with quoting and escaping things.

Last edited by Majost : 2006-03-24 at 07:06. Reason: Macintosh HD:stupid:legacy:path:style
  quote