Re: Where's the cookie, monster?
Re: Where's the cookie, monster?
- Subject: Re: Where's the cookie, monster?
- From: Philip Aker <email@hidden>
- Date: Wed, 13 Nov 2002 22:05:43 -0800
On Wednesday, Nov 13, 2002, at 13:38 US/Pacific, Peter Bunn wrote:
I'm on a dialup connection in rural Witzconsin, so I guess I'll have
to spring for the developer CD one of these days... knowing me, I'll
probably find a reason to put it off.
Developer CD comes with Jaguar.
Do you happen to know if 'Property List Editor' is in any way
AppleScriptable? AS is the only language other than HTML I can do
_anything_ with.
Property List Editor has no scripting dictionary. However, you may use
the shell command 'defaults' to read and write ".plist" files. It will
automatically search the preferences folder or take a full path for the
plist file.
For example:
set res to (do shell script "defaults read com.apple.internetconfig")
will return all the stuff that's in the
"~/Library/Preferences/com.apple.internetconfig.plist" file.
However, it's not all peaches here--it's a bit tricky to manage the
nested keys for some of these files. There is a 'man' page though and
with some work (possibly involving other command line tools), I believe
it would be possible to deal with the data you need.
My hope is/was that I can make an installer of sorts for my own stuff
(involving protocol helpers), but maybe the users (if any) will just
have to work a little harder.
Use PackageMaker (installed with Developer Tools). It can run shell
scripts.
Philip Aker
http://www.aker.ca
_______________________________________________
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.