Re: Folder actions
- Subject: Re: Folder actions
- From: kai <email@hidden>
- Date: Fri, 7 Jul 2006 01:45:30 +0100
- Delivered-to: email@hidden
- Delivered-to: email@hidden
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
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.