Re: Folder Actions and BBEdit problem this time without HTML
Re: Folder Actions and BBEdit problem this time without HTML
- Subject: Re: Folder Actions and BBEdit problem this time without HTML
- From: Emmanuel <email@hidden>
- Date: Sat, 10 Jan 2004 00:47:53 +0100
At 4:31 PM -0500 09/01/04, Dan Doughtie wrote:
>
I've got a Folder action on a G5 on 10.3.2 that is set to trigger and open a
>
text file when it arrives, then do some massive copy replacements with grep
>
searches and when finishes writes the file out to a server that inserts it
>
into an editorial system.
Regarding the task that you are programming, Smile and BBEdit are rather similar I suspect - expect Smile is its own script editor. In Smile you would use FileToWindow(this_item) to do what you want.
Though, do you really need to open the files? It might prove more efficient to load the contents of the files into a variable (using "read", in StandardAdditions.osax), then perform the grep with the Satimage osax and save the contents of the variable into a new file (with "open for access with write permission" and "write", in StandardAdditions.osax).
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.