• 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
Folder Action not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Folder Action not working


  • Subject: Folder Action not working
  • From: David Wolfe <email@hidden>
  • Date: Wed, 16 Jan 2008 14:15:10 -0500

Hi,

I've created a script that duplicates some files to a particular folder and then moves them to another folder. The script seems to work fine when run alone. But as soon as I try to make the script a Folder Action Script it does nothing.

System Events is running on the machine, Folder Actions is enabled, and the script is attached to the "Drop" folder.

Here is the script:

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

Any ideas where I should be looking?

Thank you,
David Wolfe
 _______________________________________________
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: Michelle Steiner <email@hidden>
    • Re: Folder Action not working
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: "a reference to"
  • Next by Date: RE: Database from AppleScript
  • Previous by thread: Re: Get only the name of the file, instead of the whole path!
  • Next by thread: Re: Folder Action not working
  • Index(es):
    • Date
    • Thread