• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to save some settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: How to save some settings
      • From: Walter Ian Kaye <email@hidden>
References: 
 >How to save some settings (From: Andre Vink <email@hidden>)

  • Prev by Date: Re: PhotoShop- Set Selection Size
  • Next by Date: Re: How to save some settings
  • Previous by thread: Re: How to save some settings
  • Next by thread: Re: How to save some settings
  • Index(es):
    • Date
    • Thread