Applescript tutorials mouse auto click

broken image
broken image

Now, there is not a direct command in applescript to control the mouse (which is a bummer, as that would have been incredibly easy.) but there is a way to emulate keystrokes. Not wanting to make extra work for the gallery manager, I decided to solve the problem through applescript. Then I encountered a small problem: when it loaded, the computer was placing the mouse cursor in the upper left corner of the screen, keeping the file menu visible, despite the full screen video. While in Eugene this weekend setting up some art in a gallery installation, I found myself writing a piece of applescript to load a video, loop it, and place it in full screen whenever the computer booted up.

broken image