Back to Features
Integration
AppleScript Automation
Control Ohai programmatically for automated screenshots, testing, and custom workflows.
automation.scpt
tell application "Ohai Markdown Reader"
set sidebar visible to false
set theme to dark
set zoom to 125
scroll to heading "Installation"
wait for images
end tellAvailable commands
set sidebar visible
Show or hide the table of contents sidebar.
set theme
Switch between light, dark, or system theme.
set zoom
Set zoom level from 50% to 200%.
get headers
Return a list of all headings in the document.
wait for images
Block until all images have finished loading.
reload
Force refresh the document from disk.
Perfect for screenshots
Automate your App Store screenshot workflow. Set the theme, zoom level, and scroll position, wait for images to load, then capture. Consistent, reproducible screenshots every time.
Ready to automate your workflows?
Download for Mac