• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Empty Record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Empty Record
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Activate a script when an application changes focus
  • Next by Date: Re: Activate a script when an application changes focus
  • Previous by thread: Re: Empty Record
  • Next by thread: Re: Empty Record
  • Index(es):
    • Date
    • Thread