Plist entry
Plist entry
- Subject: Plist entry
- From: Michael Ghilissen <email@hidden>
- Date: Sat, 19 Jan 2008 04:54:30 -0500
Hi List,
In Leopard 10.5.1, I need to create a plist of cookies (Safari) and add several <dict>...</dict> entries. With the following script, I can only create one entry. I am missing something. Can you help?
tell application "System Events" set the parent_dictionary to make new property list item with properties {kind:record} set the plistfile_path to "~/Desktop/example.plist" set this_plistfile to make new property list file with properties {contents:parent_dictionary, name:plistfile_path}
-- add first property list items make new property list item at end of property list items of contents of this_plistfile ¬ with properties {kind:number, name:"numberKey", value:5}
-- I NEED A NEW <dict>...</dict> ENTRY HERE and make new property list item with properties {kind:number, name:"numberKey", value:6} not overriding the previous entry.
end tell Thanks,
Michael |
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden