Re: Strange error...
Re: Strange error...
- Subject: Re: Strange error...
- From: Adam Wuellner <email@hidden>
- Date: Fri, 5 Aug 2005 13:19:41 -0500
On 8/5/05, Glenn Sugden <email@hidden> wrote:
> 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.
tell application "Finder"
set winLeft to item 1 of (get bounds of first window)
end tell
-- > 42 (of course!)
Gotta throw that 'get' in there... cuz, well, you wouldn't want consistency...
_______________________________________________
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