Folder action and BBEdit problem
Folder action and BBEdit problem
- Subject: Folder action and BBEdit problem
- From: Dan Doughtie <email@hidden>
- Date: Fri, 09 Jan 2004 15:11:02 -0500
I9ve 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 3save2 before it has a chance
to finish it9s search and replacing. Any files arriving behind it starts
backing up.
I suspect that it is being confused about 3text of window 12
But I haven9t 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.