• 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: Can not get "item" from "position"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can not get "item" from "position"


  • Subject: Re: Can not get "item" from "position"
  • From: has <email@hidden>
  • Date: Wed, 4 Apr 2007 17:33:06 +0100

Michelle Steiner wrote:

tell application "Finder"
	set targetWindow to the front window
	class of position of targetWindow
end tell
--> property

Curious. Didn't know Finder did that, although it's probably best not to read anything into it. A return value of 'property' is pretty meaningless really, and I notice other apps often return nonsense values (e.g. Smile) or errors (e.g. Cocoa apps) for similar requests, so I suspect it's undocumented or undefined behaviour - that is, an accidental artifact of Finder's internal workings - rather than a planned feature intended for public use.


HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

_______________________________________________
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: Can not get "item" from "position"
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Can not get "item" from "position"
  • Next by Date: Re: Can not get "item" from "position"
  • Previous by thread: Re: Can not get "item" from "position"
  • Next by thread: Re: Can not get "item" from "position"
  • Index(es):
    • Date
    • Thread