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

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

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