How to send the mouse pointer to a certain location with AppleScript?

Hi all!

I've already posted something along those lines a few months ago, but I've forgotten how it's done: I'd like to write a very simple AppleScript to send the mouse pointer to center screen on startup. I'd save the script as an application, add it to my startup items and hope for the best...

I thought the proper syntax to move the mouse pointer in AppleScript was "move mouse" without the quotes, but every time I try it, I get an error message, so I'm kinda lost here...

What's wrong with the following instruction?

move mouse {720, 450} -- {from left, from top}

(My screen resolution is set to 1440x900 px)

Shouldn't it be enough?

Message was edited by: Didier Caizergues

MBP Core Duo 1,83GHz 15", Mac OS X (10.4.11), Me love you cookies lo-oong time!

Posted on Jun 10, 2009 8:52 AM

Reply
20 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to send the mouse pointer to a certain location with AppleScript?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.