Re: Folder Actions Scripts
Re: Folder Actions Scripts
- Subject: Re: Folder Actions Scripts
- From: DigitEL <email@hidden>
- Date: Fri, 23 Dec 2011 13:26:49 -0800
Marconi >
Hoping to clear up some confusion...
There are four Folder Actions which enable/disable, attach/remove Folder Action Scripts to/from specific folders.
Folder Action Scripts are, yes, '.scpt' files because they are intended to operate at the SystemEvents level rather than the application level and there are four basic handlers which are triggered upon opening/closing a folder and adding/removing items to/from a folder.
If you want to run an application script you would call that script from within one of the four basic handlers.
With a droplet though, you want to grab the file or folder list that is being dropped so, for example, using the 'on adding' handler...
> on adding folder items to currentFolder after receiving newItems
> set itemList to newItems
> -- then proceed with the rest of the droplet script to process itemList... and skip the OnOpen handler
> end
Save as a .scpt file in the Folder Action Scripts folder and then attach to a specific folder.
HTH
--
ForNow
DigitEL
On Nov 16, 2011, at 7:27 AM, Marconi wrote:
> OS X 10.6.8
>
> Are folder action scripts limited to only ".scpt" scripts?
>
> I have a droplet that I wanted to convert to a folder action., The droplet is an application (".app") because it includes a bundled Perl script. Although Attach Script To Folder permits me to select the script app and attach it, it does not execute. I also tried using it as a script bundle ("scptd") and though it too can be added, it does not execute.
>
> In fact, I took an example script by Apple that displays a dialog when items are added, tested it as a script (it worked) then deleted the script version from that folder's actions and added it as a script application (.app) and later as a script bundle (.scptd).
>
> Only the ".scpt" version functioned.
>
> If this is indeed a limitation of Folder Actions, is there a way around it, perhaps by having a ".scpt" call my application bundle?
>
> Or is there an easier fix?
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden