• 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: Robert Poland <email@hidden>
  • Date: Sat, 3 Apr 2010 10:23:00 -0600

Thanks Bill,

I should have remembered that line.

However what I'm after is a script that works with any and all windows, regardless of the application as does the iKey function.


On Apr 3, 2010, at 10:15 AM, Bill Cheeseman wrote:


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


Robert Poland - Fort Collins, CO



 _______________________________________________
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

References: 
 >Move cursor with Applescript (From: Robert Poland <email@hidden>)
 >Re: Move cursor with Applescript (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Move cursor with Applescript
  • Next by Date: RE:MS Word window sizes
  • Previous by thread: Re: Move cursor with Applescript
  • Next by thread: Re: Move cursor with Applescript
  • Index(es):
    • Date
    • Thread