Move an item dropped into a folder & launch an app
Move an item dropped into a folder & launch an app
- Subject: Move an item dropped into a folder & launch an app
- From: Rob Valentine <email@hidden>
- Date: Sat, 20 Dec 2003 13:42:24 -0800
Hi. I9m trying to write a folder action script that moves an item dropped
into it to one of Acrobat9s 3watched folders2 and then launches Distiller. I
can get the script to launch Distiller, but when I try to get it to move a
document, it fails. Here9s what I9ve got:
set file_path to "Janet:Desktop Tabs:Distill:In"
on adding folder items to thisFolder after receiving addedItems
repeat with anItem in addedItems
tell application "Finder"
move anItem to file_path
open application file id "DSTL"
end tell
end repeat
end adding folder items to
When I tried attaching the folder action to the watched folder, it worked
the first time, then the attached folder action simply vanished.
What am I doing wrong here?
_______________________________________________
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.