• 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: Property Value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property Value


  • Subject: Re: Property Value
  • From: "Fleisher, Ken" <email@hidden>
  • Date: Tue, 19 Jun 2007 07:29:36 -0400
  • Thread-topic: Property Value

Thanks. I'll give it a try. I'm sure you'll hear from me if I run into a
problem!

Ken


On 6/18/07 4:35 PM, "Philip Aker" <email@hidden> wrote:

> On 2007-06-18, at 13:10:19, Fleisher, Ken wrote:
>
>> I've not dealt with plist files before. Are there good examples of
>> creating, writing to, and reading from one? What's the difference
>> between that and just any text file?
>
>
> do shell script "defaults write com.fleisher.ken SomeDefaultsKey
> 'Saved string value'"
>
> set saved_key to (do shell script "defaults read com.fleisher.ken
> SomeDefaultsKey"
>
> Note that with this kind of method, it's generally much easier to use
> default values as string, boolean, or numbers rather than arrays or
> dictionaries. For a small utility, that's usually all you'd need anyway.
>
> Cheers,
>
>
> Philip Aker
> email@hidden
>
>


--
Ken Fleisher

Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.

Phone: (202) 712-7471
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Property Value
      • From: Philip Aker <email@hidden>
References: 
 >Re: Property Value (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: talking to external MySQL servers
  • Next by Date: Re: Property Value
  • Previous by thread: Re: Property Value
  • Next by thread: Re: Property Value
  • Index(es):
    • Date
    • Thread