Re: Empty Record
Re: Empty Record
- Subject: Re: Empty Record
- From: Axel Luttgens <email@hidden>
- Date: Tue, 12 Apr 2011 17:25:34 +0200
Le 11 avr. 2011 à 22:02, Luther Fuller a écrit :
> This ought to be an easy question ...
>
> set emptyString to "" -- easy
> set emptyList to {} -- easy
> set emptyRecord to {} as record -- No! This does not work.
>
> but, I have been trying for awhile now, and can't find a way to create an empty record.
> Does anyone know how to do this?
>
> (The record will end up being written to a .plist file, so I have a work-around using
>
> do shell script "defaults write " & the result & " 'NameOfEmptyRecord' -dict" -- adds an empty dictionary to the root dictionary
>
> but I could avoid this if I could create an empty record.)
Hello Luther,
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?
Axel
_______________________________________________
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
References: | |
| >Empty Record (From: Luther Fuller <email@hidden>) |