• 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 for modified file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder action for modified file


  • Subject: Re: Folder action for modified file
  • From: Philip Aker <email@hidden>
  • Date: Mon, 13 Jul 2009 20:11:44 -0700

On 2009-07-13, at 12:51:24, John Masters wrote:

Is there a way to get a file duplicated to another folder every time it is modified and saved. I have a Folder Action script that works OK if I create a file in, say, Pages, but after it is created I have to copy the file manually every time it changes.

I think it could be solved in AppleScript using a stay open applet and an idle handler which will act on changed file modification dates. Look into <x-man-page://rsync> (which can be called from your script) as an alternative to strictly AppleScript code.


At a low unix level, <x-man-page://2/kqueue> can detect when a folder has been modified. You could do the synchronization at that level as well.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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 for modified file
      • From: Tim Mansour <email@hidden>
References: 
 >Folder action for modified file (From: John Masters <email@hidden>)

  • Prev by Date: Re: preflight before PDF creation InDesign
  • Next by Date: Re: Shell Script to Find Mounted Volume
  • Previous by thread: Folder action for modified file
  • Next by thread: Re: Folder action for modified file
  • Index(es):
    • Date
    • Thread