• 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: 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

  • Follow-Ups:
    • Re: Empty Record
      • From: Luther Fuller <email@hidden>
References: 
 >Empty Record (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Empty Record
  • Next by Date: Re: Empty Record
  • Previous by thread: Re: Empty Record
  • Next by thread: Re: Empty Record
  • Index(es):
    • Date
    • Thread