Debugging AppleScript is easy when you work with the script editor, simply use log
to print out anything in the console. However, after you compiled it to an app, this cannot work anymore.
I find there are several ways to do it in this thread. The two approaches that work best for me are:
- Use
logger
to log to the syslog. E.g.,
1 |
|
However, I don't know why sometimes this is not logged. So I will use the following:
- Echo to file
1 2 |
|
via Zigang Xiao http://bit.ly/1nWnLGH
No comments:
Post a Comment