Re: Creating preferences for an applescript application
Re: Creating preferences for an applescript application
- Subject: Re: Creating preferences for an applescript application
- From: Graff <email@hidden>
- Date: Mon, 22 Nov 2004 13:46:06 -0500
Any properties you set in an Applescript applet are saved between runs
of the applet, in a manner which duplicates preferences.
Just do something like the following:
----
property userName: "Mike"
display dialog userName
set userName to "Bob"
display dialog userName
----
Save that as an Applescript applet and then run it twice. The first
time you will get a dialog that says "Mike" and then one that says
"Bob". The second time they will both say "Bob". That is because the
property was saved between runs.
Note that if you edit and re-save the applet the properties will get
re-set to their original settings, the preferences will be lost.
- Ken
On Nov 22, 2004, at 11:42 AM, Bjorn Sodergren wrote:
I wrote a couple of small applescript applications to assist us in the
prepress area. However, i would like to make it easy for others to
change some of the properties i use in the script (server, user/pass,
directories)
Does anyone know of some good docs or examples that will help me
support this feature?
_______________________________________________
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