• 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: Move cursor with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move cursor with Applescript


  • Subject: Re: Move cursor with Applescript
  • From: Bill Cheeseman <email@hidden>
  • Date: Sat, 3 Apr 2010 12:15:34 -0400


On Apr 3, 2010, at 12:01 PM, Robert Poland wrote:

I'm trying to change an iKey function to a script.

(*
ClickZoomBox - 4/3/10    
*)
tell application "System Events"
 Move cursor to 57,12 (T/L)
click -- click left mouse button
end tell

Is this even possible with Applescript?

Using GUI Scripting, something like this (composed in Mail):

activate application "TextEdit"
tell application "System Events"
    tell process "TextEdit"
        click button 2 of window 1
    end tell
end tell

This assumes TextEdit is your target application, and that the window you want to zoom is open and frontmost.

How did I know that the zoom button is button 2? Download the free 30-day trial version of PreFab UI Browser <http://prefabsoftware.com/uibrowser>.

Or:

activate application "TextEdit"
tell application "System Events"
    tell process "TextEdit"
        set value of attribute "AXMinimized" of window 1  to true
    end tell
end tell

--

Bill Cheeseman
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

  • Follow-Ups:
    • Re: Move cursor with Applescript
      • From: Robert Poland <email@hidden>
References: 
 >Move cursor with Applescript (From: Robert Poland <email@hidden>)

  • Prev by Date: Move cursor with Applescript
  • Next by Date: Re: Move cursor with Applescript
  • Previous by thread: Move cursor with Applescript
  • Next by thread: Re: Move cursor with Applescript
  • Index(es):
    • Date
    • Thread