• 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
Strange error...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange error...


  • Subject: Strange error...
  • From: Glenn Sugden <email@hidden>
  • Date: Fri, 5 Aug 2005 10:53:19 -0700

It's early, I'm fighting a cold, but this just doesn't seem to make any sense - I'm sure there's an obvious reason for it, which makes me wonder if I'm suddenly missing something fundamental about AppleScripting (or just that the cold medicine dropping my IQ):

Tell Application "Finder"
    set winBounds to bounds of first window
    set winLeft to item 1 of winBounds
End Tell

    Works correctly, however:

Tell Application "Finder"
    set winLeft to item 1 of (bounds of first window)
End Tell

Results in: Finder got an error: Can't get item 1 of bounds of window 1.

    FWIW, so does: set winLeft to (item 1 of (bounds of first window))

    What the heck am I missing here?

    FWIW, of course this works: set winLeft to item 1 of {1, 2, 3, 4}

Thanks in advance,

::Glenn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange error...
      • From: Emmanuel <email@hidden>
    • Re: Strange error...
      • From: "Mark J. Reed" <email@hidden>
    • Re: Strange error...
      • From: Adam Wuellner <email@hidden>
  • Prev by Date: RE: When is a file open but not open?
  • Next by Date: Scripting TextEdit Save As HTML?
  • Previous by thread: Confusing the finder
  • Next by thread: Re: Strange error...
  • Index(es):
    • Date
    • Thread