AppleScript

Mouseposé extensively supports AppleScript. This allows you to control Mouseposé through other means than adjusting it manually or hitting a hotkey. Common examples are via Speech Control or third party applications, e.g. Salling Clicker.

Supported Commands and Properties

In addition to some standard AppleScript suites the Mouseposé suite supports the following commands and properties of the Mouseposé application object:

Application Properties

Mouseposé effect

Mouse click

Keystroke display

Other

  • mouse location (list) : position of the mouse in global Cocoa coordinates. The origin is the bottom left corner of the main screen.
  • Colors have to be written as lists containing three numbers, each of which has a value between 0 and 65535. These numbers represent the color channels red, green and blue (in that order). Example: { 25000, 888, 65000 }, where the first number represents the amount of red, the second the amount of green and the last how much blue is being added.

    Commands

    Mouseposé effect

    Mouse click visualization

    Mouse clicks

    (Mouse clicks can be sent to any application - Mac OS X Leopard (10.5.x) and up only)

    Keystroke display

    Other

    Sample Script

    You can copy and paste below text in the Script Editor application in order to test and modify this script on your own. Or more conveniently: Click the link below the sample text to have it open in Script Editor.

    --this script will modify some of the default settings and run the basic commands
      tell application "Mousepose"
        store settings
        set overlay color to {65535, 20000, 20000}
        set overlay opacity to 40
        set animates start and stop to true
        start effect
        delay 1
        set overlay opacity to 70
        delay 1
        set mouse location to {500, 500}
        set overlay opacity to 30
        delay 1
        set animates start and stop to false
        stop effect
      restore settings
      end tell

    Open this in Script Editor