Re: Folder action script to set property
Re: Folder action script to set property
- Subject: Re: Folder action script to set property
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 9 Jun 2005 08:54:47 +0200
Le 8 juin 2005 , à 16:03, Simon Forster a écrit :
Can a folder action script set a global property so that it's
remembered when the script is run?
property watchedFolder : ""
on adding folder items to thisWatchedFolder after receiving
theseWatchedFolderItems
global watchedFolder
set watchedFolder to (thisWatchedFolder as string)
tell application (path to me as string) to run
end adding folder items to
on run()
global watchedFolder
watchedFolder -->empty string
end
on idle()
--stuff which needs to keep on happening
end
At the moment I'm having to get the folder action to write out to a
file and then load it in the run handler - which seems kinda
pointless.
Hello
You didn't wrote which OS you are using.
With Panther, property are NOT stored in Folder actions scripts.
In Tiger, they are !
Yvan KOENIG (from FRANCE 9 juin 2005 8:54:42)
_______________________________________________
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