Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder actions




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: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Folder actions (From: Simon Troup <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.