• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Folder Action not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Folder Action not working (From: David Wolfe <email@hidden>)

  • Prev by Date: Re: "a reference to"
  • Next by Date: Re: Folder Action not working
  • Previous by thread: Folder Action not working
  • Next by thread: Re: Folder Action not working
  • Index(es):
    • Date
    • Thread