Re: "a reference to"
Re: "a reference to"
- Subject: Re: "a reference to"
- From: Luther Fuller <email@hidden>
- Date: Tue, 15 Jan 2008 12:56:19 -0600
On Jan 7, 2008, at 8:55 AM, Jon Pugh wrote:
At 6:19 AM -0500 1/7/08, Mark J. Reed wrote:
It's the invisible "get" that gets you.
Technically, that's not AppleScript's fault per se, it's an
application foible, of which there are many (this is often caused
by improper "prop from prop" handling). As Cocoa gets better
scripting, all Cocoa apps should benefit.
Perhaps this has something to do with a one-liner I had an error with
this morning. It should have worked ... but didn't.
I wrote ...
set scrWd to (item 3 of (bounds of window of desktop))
and got: "Finder got an error: Can't get item 3 of bounds of window
of desktop."
(But, it SHOULD work! $#@%&!)
So, I wrote ...
bounds of window of desktop
set scrWd to (item 3 of the result)
It worked! No error.
But, then I wrote ...
set scrWd to (item 3 of (get bounds of window of desktop))
which works, too, and gets me back to a one-liner.
Why did I have to use 'get' ?
_______________________________________________
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