• 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: Folder actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder actions


  • Subject: Re: Folder actions
  • From: kai <email@hidden>
  • Date: Fri, 7 Jul 2006 01:45:30 +0100


On 6 Jul 2006, at 14:23, Simon Troup wrote:

For some reason, in one of my scripts, folder actions get switched off on one of the folders involved in the workflow.

Can anyone tell me if it's possible to switch folder actions back on for a folder using applescript?

Try something like this, Simon (modifying the alias paths as required):

--------------

set f to alias "path:to:target folder:"
set s to alias "path:to:target script.scpt"

tell application "System Events" to if s is not in (attached scripts f) then attach action to f using s

--------------

---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: Folder actions
      • From: kai <email@hidden>
References: 
 >Folder actions (From: Simon Troup <email@hidden>)

  • Prev by Date: Re: UI scripting "Show Infos"
  • Next by Date: Re: UI scripting "Show Infos"
  • Previous by thread: Folder actions
  • Next by thread: Re: Folder actions
  • Index(es):
    • Date
    • Thread