Scripts and live
A script
The agent does its thinking while it writes the script, so the recording has no dead pauses. The mouse moves along eased curves at 120 Hz, text types at a human pace, and the same script records the same way twice.
{
"app": "Calculator",
"size": [460, 820],
"render": { "background": "grape" },
"steps": [
{ "click": "All Clear" },
{ "click": { "text": "1", "role": "button" } },
{ "zoom": { "scale": 1.7, "duration": 3 } },
{ "click": "Multiply" },
{ "type": "34" },
{ "key": "return" },
{ "pause": 1.5 }
]
}
A target T is an element found through Accessibility, such as "Save",
{"text": "Save", "role": "button"} or {"id": "saveButton"},
or a point in window coordinates, {"x": 300, "y": 200}.
rolling elements --app NAME lists what is there.
| Step | Does |
|---|---|
{"pause": 1.5} | waits |
{"move": T} | glides the mouse to T |
{"click": T} | glides there and clicks; also doubleClick, rightClick |
{"type": "hello\n", "cps": 14} | types; \n is Return |
{"key": "cmd+shift+k"} | presses a chord, shown as a pill |
{"scroll": {"dy": 400, "at": T}} | scrolls smoothly; positive is down |
{"drag": {"from": T, "to": T}} | drags |
{"zoom": {"scale": 2, "at": T, "duration": 3}} | pushes the camera in; later steps keep running |
{"zoom": {"at": T, "track": true, "duration": 6}} | follows whatever is at T as it moves |
{"zoomOut": true} | ends a zoom that has no duration |
{"wait": T, "timeout": 10} | waits for an element to appear |
{"marker": "chapter 2"} | names a moment |
{"say": "Text", "voice": "af_heart", "overlap": false} | narrates, with captions; waits until it has been said unless overlap is set |
The top of a script:
app- name or bundle id
window- part of its title
size, position- points, centred on screen unless placed
fps, codec- 60; hevc or prores
capture- window, or app to also show menus and popovers
preroll, postroll- 0.8 s and 1.2 s around the steps
seed, speed- the same jitter every time; 1 is a human pace
voice, narrationTail- the narration voice; 0.35 s after each line
render- any render option, or a preset
Live
Start recording, drive the app any way you like, then stop. Live recordings render with zooms on clicks and with pauses longer than 1.5 s cut to a beat, so an agent’s thinking time disappears. Cursor jumps, such as computer use teleporting the mouse, become glides that land just as the click happens. Only chords with ⌘, ⌃ or ⌥ and named keys are logged, never plain typing.
rolling record --app Safari --size 1440x900 & # starts recording the window
# … drive the app: computer use, a person, anything …
rolling mark zoom --scale 2 --for 3 # zoom on the cursor now
rolling mark say "Now the export" # narrate now
rolling stop # stops, renders, prints the file
Following something that moves
A tracking zoom keeps a moving thing in the middle of the view: a ball, a card being dragged, a dialog sliding in. Point at where it is at one moment. Rolling follows it by its colours, speed and heading, keeps the right one when two similar things cross, and carries it along its heading for up to 1.5 s while it is hidden.
rolling track demo --at 3 --x 742 --y 398 --for 6.6 --scale 2.2 # after recording
rolling mark zoom --x 742 --y 398 --track --for 6 # while recording
rolling track demo --clear # take them out