• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I set folder action in Yosemite, please?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How do I set folder action in Yosemite, please?
      • From: Yvan KOENIG <email@hidden>
    • Re: How do I set folder action in Yosemite, please?
      • From: Yvan KOENIG <email@hidden>
    • Re: How do I set folder action in Yosemite, please?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: How do I set folder action in Yosemite, please?
  • Next by Date: Re: How do I set folder action in Yosemite, please?
  • Previous by thread: Fwd: How do I set folder action in Yosemite, please?
  • Next by thread: Re: How do I set folder action in Yosemite, please?
  • Index(es):
    • Date
    • Thread