Folder Actions
Folder Actions
- Subject: Folder Actions
- From: Jim Heissenbuttel <email@hidden>
- Date: Tue, 08 Apr 2003 17:03:25 -0700
First of all, I am a newbie to AS. I have found this list to be invaluable
in learning how to do this stuff. I would appreciate any help.
I have found folder actions to be a good way to make 'hot folders', however
I just cannot seem to get this one to work. I would like to have a script
that makes a list of all the files dropped into a folder, then iterates
through them one at a time opening, processing, and closing them. Here is
what I have so far:
------snip-------
on adding folder items to this_folder after receiving these_items
set these_items to these_items as list
repeat with i from 1 to count these_items
set itemPath to (item i of these_items as string)
openFile()
processDocument()
closeFile()
end repeat
end adding folder items to
------snip-------
The lines openFile(), processDocument(), closeFile() are subroutines I
call later, and all seem to work fine.
The result is that the first document gets opened, processed, and closed
like expected. Then the second document opens and the script seems to stop.
Can anyone provide an idea why?
Jh
_______________________________________________
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.