Friday, 19 February 2010

Applescript


i have been looking script or expert lead me applescript moves cursor upon startup , clicks. know how include applescript in login items, haven't found helpful concerning script, short of learning whole language. don't know if keyword "mouse", "cursor", "pointer" or else.

there program have , need places unwanted large logo near middle of desktop in same place every time turn on computer (imac os x version 10.7.3). redundant , bothers me. need click away each time. once problem solved, not need applescript ever again.

leads appreciated.

thank help.

james adrian
jim@futurebeacon.com
 

g'day

can use system events perform mouse click :
code:
tell application "system events"  	tell process "(name-of-your-application)"  		click @ {800, 500} -- (coordinates top left of screen)  	end tell  end tell
to find exact name of app (process) can run — , copy results window :
code:
tell application "system events"  	get every process  end tell
to find exact location of point need click — go command-shift-4 , draw box top left corner of screen. when cursor on point need, take note of coordinates listed there. (note: places screen grab on desktop — you'll want delete).

hope that's you're looking for.

m.
 


Forums Macs macOS Older OS X Versions Mac OS X Lion (10.7)


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment