Re: Empty Record
Re: Empty Record
- Subject: Re: Empty Record
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 11 Apr 2011 16:22:36 -0400
I don't think "empty record" is a terribly meaningful concept in
Applescript. I guess it would be nicely consistent to have a value
that served as the identity under record concatenation, but beyond
that I don't see much use for an empty record, as there's no way to
add fields to it.
On Mon, Apr 11, 2011 at 4:02 PM, Luther Fuller <email@hidden> wrote:
> 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.)
>
> _______________________________________________
> 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
>
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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>) |