• 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 - duplicating files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Folder Action - duplicating files


  • Subject: Folder Action - duplicating files
  • From: Robert Ladle <email@hidden>
  • Date: Mon, 27 Feb 2006 15:17:57 -0800

I have a simple folder actions script that works fine for duplicating items to a second folder when new items are added to the original folder. However, items being deposited into the original folder can be new and some are just updates to existing items. The script as written does not react to updates causing the second folder to be "out of date", which I'm sure is due to the "adding" folder items statement. Essentially I want to synchronize the second folder to the first with AppleScript.

What do I need to add/modify to accomplish this? I've tried various iterations with no luck. I need the second folder to contain duplicates to stand on their own and not be aliases.

--------------
on adding folder items to this_folder after receiving these_items
set theFolder to "Mini:Users:me:Desktop:aFolder"
repeat with this_item in these_items
tell application "Finder"
try
duplicate this_item to folder theFolder with replacing
on error
--do stuff
end try
end tell
end repeat
end adding folder items to
----------------


Thanks-
-Bob
------------


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Folder Action - duplicating files
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Folder action script
  • Next by Date: Addressing an app that may or may not exists (without alerting user)
  • Previous by thread: Re: Creating MacBinary files: command line or AScript tools?
  • Next by thread: Re: Folder Action - duplicating files
  • Index(es):
    • Date
    • Thread