Re: Empty Record
Re: Empty Record
- Subject: Re: Empty Record
- From: Axel Luttgens <email@hidden>
- Date: Tue, 12 Apr 2011 23:59:35 +0200
Le 12 avr. 2011 à 20:39, Luther Fuller a écrit :
> On Apr 12, 2011, at 10:25 AM, Axel Luttgens wrote:
>> Maybe this one:
>>
>> tell application "System Events"
>> set PLI to make new property list item with properties {kind:record}
>> end tell
>>
>> could be of some help wrt .plist files?
>
> Thanks. Tried variations on this theme, but could not get what I wanted.
> The .plist already contains the 'root' dictionary which contains one item, a dictionary named "xxx".
> I need to add the empty dictionary to the root dictionary so that it now contains two items "xxx" and "yyy", both dictionaries with "yyy" being empty.
tell application "System Events"
tell (make new property list file with properties {name:"~/Desktop/luther.plist"})
make new property list item with properties {name:"xxx", value:{one:1}} at the end of property list items
make new property list item with properties {name:"yyy", kind:record} at the end of property list items
end tell
end tell
_______________________________________________
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