Re: create a new plist item using applescript
Re: create a new plist item using applescript
- Subject: Re: create a new plist item using applescript
- From: Emmanuel <email@hidden>
- Date: Mon, 11 Dec 2006 14:17:44 +0100
At 3:44 PM -0500 12/10/06, Mike Silva wrote:
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C71C9B.FC79A48C"
I would like to modify an existing plist file by changing some
existing plist items and adding some new ones.
Modifying existing plist items works fine using syntax like:
osascript -e"tell application \"System Events\" to set value of
property list item \"CFBundleSignature\" of contents of property
list file \"blah.plist\" to \"Something\""'
but this syntax fails if I try to add a new element to the plist. (I
get this error):
36:168: execution error: System Events got an error:
NSReceiverEvaluationScriptError: 4 (1)
How can I create a new plist item to an existing plist?
You might use XMLLib.osax, by Satimage-software. It's free and it's
sometimes said more powerful than System Events' plist Suite.
<http://www.satimage-software.com/en/plist_suite.html>
Emmanuel
Satimage-software
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden