Re: Folder Action not working
Re: Folder Action not working
- Subject: Re: Folder Action not working
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 16 Jan 2008 20:35:52 +0100
Le 16 janv. 2008 à 20:15, David Wolfe a écrit :
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"
end tell
try
repeat with i from 1 to number of items in added_items
set theFile to item i as alias
tell application "Finder"
duplicate theFile to folder1
move theFile to folder2
end tell
end repeat
end try
end adding folder items to
I would try to edit like that:
on adding folder items to this_folder after receiving added_items
set folder1 to "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:Test:" as alias
set folder2 to "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:SOURCE:" as
alias
repeat with f in added_items
set theFile to f as alias
tell application "Finder"
try
duplicate theFile to folder1
end try
try
move theFile to folder2
end try
end tell
end repeat
end adding folder items to
Yvan KOENIG _______________________________________________
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