Re: Folder Action not working
Re: Folder Action not working
- Subject: Re: Folder Action not working
- From: Michelle Steiner <email@hidden>
- Date: Wed, 16 Jan 2008 12:40:55 -0700
On Jan 16, 2008, at 12:15 PM, David Wolfe wrote: Any ideas where I should be looking?
Remove the try block to see where the error happens. Because you didn't report any errors in the try block, it will cause any errors to be suppressed and therefore nothing will happen.
This should do it, though:
on adding folder items to this_folder after receiving added_items
tell application "Finder" set folder1 to folder "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:Test" set folder2 to folder "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:SOURCE"
try repeat with i from 1 to number of items in added_items
set theFile to item i of added_items --as alias shouldn't be needed
duplicate theFile to folder1 move theFile to folder2
end repeat end try end tell end adding folder items to
-- Those who extol the "nobility of labor" mean the labor of others.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden