Re: Accessing Child Elements of Property List Records or Lists
Re: Accessing Child Elements of Property List Records or Lists
- Subject: Re: Accessing Child Elements of Property List Records or Lists
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 16 Aug 2009 16:41:58 -0400
On Sun, Aug 16, 2009 at 4:33 PM, Grant Erickson<email@hidden> wrote:
> set theBounds to my GetObjectForKeyInFile(thePlist, "Bounds")
> set theHeight to |Height| of theBounds
> set theWidth to |Width| of theBounds
or just
set {theHeight, theWidth} to { |Height|, |Width| } of theBounds
> repeat with theItem in theItems
> local theName, thePosition
Don't need that - variables spring into existence when you "set" them,
and they default to local.
> set theName to |Name| of theItem
> set thePosition to |Position| of theItem
again, you could do
set {theName, thePosition} to {|Name|, |Position|} of theItem
> set position of item theName to {|X| of thePosition, |Y| of
> thePosition}
and here:
set position of item theName to {|X|, |Y|} of thePosition
--
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