• 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
better way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

better way?


  • Subject: better way?
  • From: louie <email@hidden>
  • Date: Fri, 24 Jun 2011 14:55:20 -0700

Hi all,
Is there a better way to get the text of the mouse cursor.
Thank you.

	-- get the text under the mouse cursor
	tell application "VoiceOver"
		tell commander
			perform command "describe item in mouse cursor"
			perform command "copy last phrase to clipboard"
		end tell
	end tell
	-- get the text from the clipboard
	set clip to (the clipboard as text)
	-- check the text under the mouse cursor
	if clip contains menuName then

louie
email@hidden



 _______________________________________________
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

  • Prev by Date: Re: tell block question
  • Next by Date: List View Options
  • Previous by thread: Re: Folder or File?
  • Next by thread: List View Options
  • Index(es):
    • Date
    • Thread