• 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: 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

References: 
 >Folder Action not working (From: David Wolfe <email@hidden>)
 >Re: Folder Action not working (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Folder Action not working
  • Next by Date: Re: Get only the name of the file, instead of the whole path!
  • Previous by thread: Re: Folder Action not working
  • Next by thread: Re: Folder Action not working
  • Index(es):
    • Date
    • Thread