Re: How do I set folder action in Yosemite, please?
Re: How do I set folder action in Yosemite, please?
- Subject: Re: How do I set folder action in Yosemite, please?
- From: Nigel Garvey <email@hidden>
- Date: Sun, 30 Nov 2014 12:44:05 +0000
Yvan KOENIG wrote on Sun, 30 Nov 2014 11:53:38 +0100:
>> I hope you can put ‘attach action’ to good use.
>So, now things are clear.
>The command is defined but who knows why, Apple decided to hide this
>definition (and some other ones).
Hi Yvan.
It's an old System Events command which has now been superseded. What
used to be …
tell application "System Events" to attach action to thisFolder using thisScript
… apparently now has to be:
tell application "System Events"
set thisAction to (make new folder action at end of folder actions with properties {path:(thisFolder as text)})
make new script at end of thisAction's scripts with properties {name:(get thisScript's name)}
end tell
I can't find any documentation saying when this change came about, but a
script I have was altered to the new syntax in October 2011.
NG
_______________________________________________
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