|
|
Create a simple AppleScript logging function
You'll want to be able to turn on/off the logging. Do it by changing the log_event handler to something like this:
Create a simple AppleScript logging function
Good idea.
Toggling the logging function
Actually, since you have defined "DoLogTF" as a property, it is therefore, global and you don't need to modify the parameters sent to the handler at all. (That is, to the best of my knowledge -- I could be wrong.) Granted this makes this routine ON or OFF for the entire script.
Create a simple AppleScript logging function
I actually have been using a growl ( Growl ) for some reporting when I run appleScripts in debugging mode and some that use growl all the time for notification. I have a similar script that has an optional logLevel parameter that I use so that I can filter the log messages in the console viewer.
Sam D
--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|