• 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: Creating preferences for an applescript application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Creating preferences for an applescript application
      • From: Bjorn Sodergren <email@hidden>
References: 
 >Creating preferences for an applescript application (From: Bjorn Sodergren <email@hidden>)

  • Prev by Date: SV: Creating preferences for an applescript application
  • Next by Date: Re: Creating preferences for an applescript application
  • Previous by thread: SV: Creating preferences for an applescript application
  • Next by thread: Re: Creating preferences for an applescript application
  • Index(es):
    • Date
    • Thread