JXA Alert Function
See code below.
JMichaelTX JXA Gists
Because there is so little JavaScript for Automation (JXA) code that is published, I plan to publish as much as I can that will hopefully be of help to others learning JXA.
Much of what I publish will be based on the work of others, and I always try to cite those references in the code header. If I have failed to properly credit your code, please post a comment, and I will correct my Gist.
Your JXA Code
If you have example code you'd like to share, please post a link to your code. After having searched and evaluated various options for posting/sharing code, i have concluded that Github Gists is the best.
Bugs/Issues & Suggestions
If you find any bugs or issues, or have suggestions for improvement, please feel free to post a comment.
For more info, see JavaScript for Automation (JXA) Resources