Re: Folder Actions: Use non-scripts?
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