Skip to content

Instantly share code, notes, and snippets.

@beauvais
Created June 12, 2013 18:48
Show Gist options
  • Save beauvais/5767998 to your computer and use it in GitHub Desktop.
Save beauvais/5767998 to your computer and use it in GitHub Desktop.
AppleScript to tell iA Writer to create a new document, insert "Just Type:", and set itself to Zen Mode.
set s to "Just type:" & return & "---" & return
activate application "iA Writer"
tell application "iA Writer"
make new document
activate
delay 0.2
tell application "System Events" to keystroke s
tell application "System Events" to keystroke "d" using command down
tell application "System Events" to keystroke "f" using {command down, control down}
end tell
@josephavellino
Copy link

Thanks for this.

IA team posted a Shortcut for iOS to create new document from Safari web content on iOS device (of course). Do you happen to have an Apple Script in the library of what you've built for IA Writer to do same for Mac? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment