Re: How to save some settings
Re: How to save some settings
- Subject: Re: How to save some settings
- From: Joseph Weaks <email@hidden>
- Date: Wed, 5 May 2004 22:38:16 -0500
On May 5, 2004, at 3:30 PM, Andre Vink wrote:
How can I save some content of a variables AND use this when I start
the script later.
I've set a variable to 1, the user change the variable to 2.
The next time the script is started the variable is set by default to
1.
This is not what I want! I would use the content of the variable that
was set by the user?
Is this posible?
If you define the variables as "properties" then the values will be
stored within the script, AS LONG AS YOU DON"T RECOMPILE THE SCRIPT.
Try this out, saved as a script:
property myVariable : 1
if myVariable is 2 then display dialog "Buckle my shoe"
set myVariable to text returned of (display dialog "Change the variable
if you like" default answer myVariable) as number
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.