Re: Empty Record
Re: Empty Record
- Subject: Re: Empty Record
- From: Nigel Garvey <email@hidden>
- Date: Tue, 12 Apr 2011 10:46:17 +0100
Luther Fuller wrote on Mon, 11 Apr 2011 15:02:14 -0500:
>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?
Hi, Luther.
set emptyRecord to {}
I don't know how it affects your plist, but in AppleScript, an empty
record and an empty list are the same thing.
class of {} --> list
But:
{} & {a:"aardvark"} --> {a:"aardvark"} -- ie. not {"aardvark"}
And:
count {{}, {}, {}, {}} each record --> 4
NG
_______________________________________________
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