• 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: Question: Setting up a script to watch a folder in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: Setting up a script to watch a folder in OS X?


  • Subject: Re: Question: Setting up a script to watch a folder in OS X?
  • From: Roger_Jolly <email@hidden>
  • Date: Fri, 21 Jun 2002 12:57:19 +0200

On 6/20/02 4:34 AM, "Sven Ryen" <email@hidden> wrote:

> A very simple question: Does anybody have examples of a script that can
> 'watch' a folder, and perform tasks when files are dropped into it, then
> output the result to a second folder? (I guess this sounds like a job for
> Folder Actions, but the script needs to be capable of running under OS X)
Yes it is possible, I've done something like it with my AEP application
(http://homepage.mac.com/roger_jolly/aep/index.html)
I'm currently annotating the script file, but if anyone is interested, I'll
put the uncommented version on the site in the mean time.
In short what I've done is setting up a loop in which the Finder reads out
the selection, or in your case the contents of a folder, storing it in a
record. The next time round compare it with precious saved record to see if
there are changes. If so, take action.

Hope this helps,

Roger
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Question: Setting up a script to watch a folder in OS X?
      • From: Roger_Jolly <email@hidden>
  • Prev by Date: Re: Using AppleScript Guidebook in OS X?
  • Next by Date: some questions
  • Previous by thread: Re: Question: Setting up a script to watch a folder in OS X?
  • Next by thread: Re: Question: Setting up a script to watch a folder in OS X?
  • Index(es):
    • Date
    • Thread