Trace

Scripting with Trace

With Trace v2.3.0+, you can use AppleScript to send events to the app to perform actions such as staring a session, ending a session, etc.

All the commands below will return a boolean value indicating if the operation was performed successfully or not.

Below are some of the actions that you can perform:

1. Start Session

You can start a session by sending the `start session` event to the Trace app. This command will start a new session if one is not currently started.

This is how that looks like:

tell app "Trace" 
  start session
end tell

2. End Session

The `end session` command will end a session if one is currently active. It will return true if it successfully ended a session, and false otherwise.

tell app "Trace" 
  end session
end tell

3. Start Break

The `start break` command will start a break if one is not currently started.

tell app "Trace" 
  start break
end tell

4. End Break

The `end break` command will end a break if there's an active break.

tell app "Trace" 
  end break
end tell

Privacy Policy Scripting Guide

For any questions, contact [email protected]