• 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 23:59:35 +0200

Le 12 avr. 2011 à 20:39, Luther Fuller a écrit :

> On Apr 12, 2011, at 10:25 AM, Axel Luttgens wrote:
>> 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?
>
> Thanks. Tried variations on this theme, but could not get what I wanted.
> The .plist already contains the 'root' dictionary which contains one item, a dictionary named "xxx".
> I need to add the empty dictionary to the root dictionary so that it now contains two items "xxx" and "yyy", both dictionaries with "yyy" being empty.


	tell application "System Events"
		tell (make new property list file with properties {name:"~/Desktop/luther.plist"})
			make new property list item with properties {name:"xxx", value:{one:1}} at the end of property list items
			make new property list item with properties {name:"yyy", kind:record} at the end of property list items
		end tell
	end tell


 _______________________________________________
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>)
 >Re: Empty Record (From: Axel Luttgens <email@hidden>)
 >Re: Empty Record (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Empty Record
  • Next by Date: Script to Enable to root user
  • Previous by thread: Re: Empty Record
  • Next by thread: Re: Empty Record
  • Index(es):
    • Date
    • Thread