Scripted actions can be attached to a display configuration and will, by default, be run whenever that display configuration becomes active. By unchecking the “Run only on display configuration change” checkbox, an action can be made to run when windows are manually restored in addition to when its display configuration becomes active.
To add a new AppleScript action to Stay, click the plus button, then select “AppleScript Action”.
To add a new Shell Script action to Stay, click the plus button, then select “Shell Script Action”.
To import an existing script into Stay, click the plus button, then select “Import from File…”.
Launch an application (AppleScript)
Change the size of the Dock (AppleScript)
Change the position of the Dock (AppleScript)
Change iChat status (AppleScript)