Created
May 28, 2020 12:15
-
-
Save mingsai/a22b88a8ded784985e3296942461501b to your computer and use it in GitHub Desktop.
Applescript: Debugging variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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