create a new plist item using applescript
create a new plist item using applescript
- Subject: create a new plist item using applescript
- From: "Mike Silva" <email@hidden>
- Date: Sun, 10 Dec 2006 15:44:28 -0500
- Thread-topic: create a new plist item using applescript
Title: create a new plist item using applescript
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?
Mike
_______________________________________________
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