Re: Storing preferences...
Re: Storing preferences...
- Subject: Re: Storing preferences...
- From: Chris Janton <email@hidden>
- Date: Wed, 28 Aug 2002 07:02:09 -0700
do shell script "defaults read ...."
and
do shell script "defaults write..."
Thanks - very sweet idea...
From my command line...
mac 128 ~ % defaults write com.centosprime.mac "testing" 'jibble'
mac 130 ~ % defaults read com.centosprime.mac
{testing = jibble; }
mac 131 ~ % defaults write com.centosprime.mac "resting" 'jabble'
mac 132 ~ % defaults read com.centosprime.mac
{resting = jabble; testing = jibble; }
mac 133 ~ % defaults read com.centosprime.mac "resting"
jabble
my AppleScript looks like
do shell script "defaults read com.centosprime.mac \"resting\""
the result is "jabble"
You can also use this for shell scripts like this...
mac 134 ~ % FOO=`defaults read com.centosprime.mac "resting"`
mac 135 ~ % echo $FOO
jabble
---
Chris Janton - face at centosprime dot 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.