Re: Folder Actions: Use non-scripts?
Re: Folder Actions: Use non-scripts?
- Subject: Re: Folder Actions: Use non-scripts?
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 22 Apr 2005 12:51:48 -0400
Eric M. Williams wrote [4/22/05 12:22 PM]:
> Hello List -
>
> 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.
A compiled script can simply be:
tell application "Smile" to launch
> 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.
That's not a hack. That's the point.
Anyway, the question is a little oddly formed. To "attach an application",
you must mean that you want the application to do something when there is a
"folder action", such as adding something to it, or whatever.
Well, that is the precise mechanism that Folder Actions facilitate.
You write a script with the desired "action" handlers and tell whatever
application you want to do something with those things. Maybe it is just
the Finder that you are telling to move the items. But it could be that when
you add some items, you ask the Finder to ask a PhotoShop Action droplet to
open the files. That's one I use.
Or, you could tell your Folder Action that, when you close the folder, make
a log entry in a text file. That's one I use.
Folder Actions are not all about the Finder. Folder Actions are all about
AppleScript. I mean, the handlers that detect the action are AppleScript
commands. You need them.
--
Gary
_______________________________________________
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