Re: Move cursor with Applescript
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.
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
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