Folder Actions and BBEdit problem this time without HTML
Folder Actions and BBEdit problem this time without HTML
- Subject: Folder Actions and BBEdit problem this time without HTML
- From: Dan Doughtie <email@hidden>
- Date: Fri, 09 Jan 2004 16:31:50 -0500
This time with HTML mail off and hopefully without smart quotes. This should
be easier to read Sorry about that I didn't know that it was a problem.
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.
If one file lands at a time it works great. When you throw 100 in at one
time it works great. But if a second file arrives after it starts processing
another file then it stops and tries to do a -save- before it has a chance
to finish its search and replacing. Any files arriving behind it starts
backing up.
I suspect that it is being confused about --text of window 1--
But I haven't had any luck in using something other than window 1. Is there
a way to set a variable to the window of item x to avoid using Window 1?
The script goes
on adding folder items to this_folder after receiving these items
--some global fields etc.
repeat with x from 1 to number of items in these_items
set this_item to item x of these_items
set the item_info to info for this_item --(so I can figure out the name of
the file)
tell app 3BBEdit2
open this_item
set MPS to text of window 1
--start all of my searches then save the clean file to another folder.
end tell
end repeat
How to I tell it to. Since the script it running live it9s hard for me to
test but would -- set MPS to text of window 1 of item x --work?
--
Dan Doughtie
Business Analyst
Morris Technology Services
_______________________________________________
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.