Strange error...
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