Monday, 22 March 2010

Help!


i need write script execute basic stuff , can't figure out how.

need x key , spacebar key pushed 2 times each every 5 minutes.
literally.... xx 2 spacebar pushes
duration of keystrokes 1 second long.

possible?
 

in order "system events" application use key code or keystroke commands, have enable mac os x's accessibility frameworks."system events" send key code or keystroke frontmost application.

paste code in scripteditor :

code:
tell application "system events"  	repeat  		keystroke "x"  		keystroke "x"  		keystroke space  		keystroke space  		--change delay 10 delay 300 5 minutes delay  		delay 10  	end repeat  end tell  
don't know if duration of keystrokes can 1 second long.
result in frontmost application scripteditor :
 

attached files:



Forums Macs Mac Programming


  • 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