• 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:Storing preferences, part deux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:Storing preferences, part deux


  • Subject: RE:Storing preferences, part deux
  • From: James Burns <email@hidden>
  • Date: Thu, 6 Feb 2003 13:53:02 -0500

Please excuse me answering my own question, but I just found a great, elegant solution that doesn't involve calling any shell scripts or too much text manipulation. I found it in the AppleScript Studio terminology Reference under Applications Suite:Classes:default entry.

What it lets you do is set user preferences thusly:

make new default entry at end of default entries of user defaults with
properties {name:"defaultName", contents:"Testing"}

(This for makes the entries start AFTER the default entries (which would be bad to mess with).

To retrieve them, using the example from the previous one, just use:

set myName to contents of default entry "defaultName" of user defaults

Neat, elegant, and easy to implement.

Just thought I'd share. Thanks, again.


-----
James Burns
http://www.jamesburnsdesign.com
_______________________________________________
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: Storing preferences, part deux
      • From: Philip Aker <email@hidden>
References: 
 >Re: Storing preferences? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Storing preferences, part deux
  • Next by Date: How can you tell whether you have a reference or not?
  • Previous by thread: Re: Storing preferences?
  • Next by thread: Re: Storing preferences, part deux
  • Index(es):
    • Date
    • Thread