Re: Folder Actions: Use non-scripts?
Re: Folder Actions: Use non-scripts?
- Subject: Re: Folder Actions: Use non-scripts?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 22 Apr 2005 09:58:24 -0700
On Apr 22, 2005, at 9:50 AM, 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.
No. Only scripts. Not even script applications (applets), just
compiled scripts.
Of course, I could write a wrapper script that passes the event on
to my application, but it would be nice to get the event directly
and avoid this kind of hack.
It's not a hack.
But if the application could be attached to a folder, how would it
know what to do with the file or folder that's dropped onto it?
Well, the same way the AppleScript does: parameters are passed via an
Apple Event, one of which is the folder in question.
The only parameters passed when dropping something onto a folder are
the identity of the folder and the items that are dropped. The script
itself determines what should be done with those parameters.
So, for example, if you attach BBEdit to a folder, how would BBEdit
know what to do with a file dropped onto that folder?
-- Michelle
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
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