• 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: Accessing Child Elements of Property List Records or Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Accessing Child Elements of Property List Records or Lists (From: red_menace <email@hidden>)
 >Re: Accessing Child Elements of Property List Records or Lists (From: Grant Erickson <email@hidden>)

  • Prev by Date: Re: Accessing Child Elements of Property List Records or Lists
  • Next by Date: Preventing POSIX File to Alias Conversion from Inserting Leading Colon
  • Previous by thread: Re: Accessing Child Elements of Property List Records or Lists
  • Next by thread: Script for mail
  • Index(es):
    • Date
    • Thread