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:50:10 -0700
On Jan 16, 2008, at 12:40 PM, Michelle Steiner wrote: his 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
Actually, I'd do it this way:
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 duplicate added_items to folder1 move added_items to folder2 end try end tell end adding folder items to
-- Only in in the USA do they have a General in charge of the post office and a Secretary in charge of defense.
|
_______________________________________________
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