• 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: "a reference to"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: "a reference to"
      • From: Emmanuel <email@hidden>
    • Re: "a reference to"
      • From: "Mark J. Reed" <email@hidden>
References: 
 >"a reference to" (From: Michelle Steiner <email@hidden>)
 >Re: "a reference to" (From: "Mark J. Reed" <email@hidden>)
 >Re: "a reference to" (From: Jon Pugh <email@hidden>)

  • Prev by Date: make new folder ?
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: "a reference to"
  • Next by thread: Re: "a reference to"
  • Index(es):
    • Date
    • Thread