• 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 Actions: Use non-scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Actions: Use non-scripts?


  • Subject: Re: Folder Actions: Use non-scripts?
  • From: has <email@hidden>
  • Date: Fri, 22 Apr 2005 22:14:20 +0100

Eric M. Williams wrote:

>Is it possible to attach a normal, non-AppleScript application as a
>Folder Action in OS X? The Folder Actions interface seems to only allow
>compiled scripts.

It doesn't sound like System Events' Folder Actions are appropriate for your needs. You probably need to hit the system APIs. Try 'man kqueue' (OS 10.3+).


>It looks like the Folder Actions server is not sending Apple Events as I first thought, but is actually loading and calling one of the script's handlers, which will obviously not work for a compiled application.

Correct; System Events implements Folder Actions using attachability, not IAC (you can't send Apple events to files, only to application processes). SE uses the OSA APIs [presumably via NSAppleScripts since it's a Cocoa app] to load OSA scripts and call their handlers.

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
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

  • Prev by Date: Quark - search and replace.
  • Next by Date: ASCII code for pc return
  • Previous by thread: Re: Folder Actions: Use non-scripts?
  • Next by thread: The Pyramid - a challenge...
  • Index(es):
    • Date
    • Thread