• 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
create a new plist item using applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: create a new plist item using applescript
      • From: Emmanuel <email@hidden>
    • Re: create a new plist item using applescript
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Durations of mp3 files?
  • Next by Date: Find the intersection of two groups in Address Book.
  • Previous by thread: attachments to Filemaker container
  • Next by thread: Re: create a new plist item using applescript
  • Index(es):
    • Date
    • Thread