• 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: Sun, 4 Apr 2010 10:04:37 -0600

I ran this script and the apparent result tells me that cliclick only deals with the desktop screen and no other windows.

(*
ClickZoomBox - 4/3/10    Much copied from setBounds
*)

set x to (info for (path to frontmost application))'s short name

if x = "" then
beep
return
end if

tell application x
tell application "System Events"
tell window 1
tell (first process whose frontmost is true)
do shell script "cliclick 51 12"
end tell
end tell
end tell
end tell


On Apr 3, 2010, at 4:10 PM, Bruce Robertson wrote:


On Apr 3, 2010, at 2:42 PM, Craig Williams wrote:


On Apr 3, 2010, at 3:38 PM, Robert Poland wrote:

Thanks to Yvan,

Now I got cliclick to work. But it only seems to deal with the Screen and not individual windows.


Add a click to activate the window first

Maybe that will first require a standard applescript command to bring select the desired app and window. _______________________________________________

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: 
 >Re: Move cursor with Applescript (From: Craig Williams <email@hidden>)
 >Re: Move cursor with Applescript (From: Robert Poland <email@hidden>)
 >Re: Move cursor with Applescript (From: Yvan KOENIG <email@hidden>)
 >Re: Move cursor with Applescript (From: Robert Poland <email@hidden>)
 >Re: Move cursor with Applescript (From: Craig Williams <email@hidden>)
 >Re: Move cursor with Applescript (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: Works in Terminal, not as "do shell script"
  • Next by Date: Re: Works in Terminal, not as "do shell script"
  • Previous by thread: Re: Move cursor with Applescript
  • Next by thread: RE:MS Word window sizes
  • Index(es):
    • Date
    • Thread