Skip to content

Instantly share code, notes, and snippets.

@mingsai
Created May 28, 2020 12:15
Show Gist options
  • Select an option

  • Save mingsai/a22b88a8ded784985e3296942461501b to your computer and use it in GitHub Desktop.

Select an option

Save mingsai/a22b88a8ded784985e3296942461501b to your computer and use it in GitHub Desktop.
Applescript: Debugging variables
Displaying variables
The display command is how you produce a text version of the contents of any variable. Various commands display text, making it natural to display information about the run while a script is executing.
quietmsg(s): displays the string s in the console,
msg(s): like quietmsg(s), but brings the console to the front,
postit s displays a message in the floating Message window. postit "" closes the floating Message window.
postit "job in progress …"
set x to 1
quietmsg(x)
set x to x + 1
quietmsg(x)
set x to x + 1
quietmsg(x)
postit "job done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment