|
|
contextual menu add-in
Love it. I've been wanting something like this for a long time. Should work nicely until I can justify buying Script Debugger.
Here are some tweaks that I think are helpful. This allows you to "control-click" or "right-click" in your Script Editor document to insert the line of code for logging a variable. It assumes you've copied the variable of interest to the clipboard first. Also keeps track of the variable name as well as value and adds a breaking line between runs to make reading the output a little easier. Start off with a "templateScript.scpt", i.e. the common code to begin all your works in progress:
The logging applescript itself, "logger.scpt" saved to whatever path you use in the code above:
Finally the contextual menu add-in, "loggerTag.scpt", that lets you take any variable you've saved to the clipboard and insert the logging call for it wherever you like. Save this script in "~/Library/Scripts/Script Editor Scripts/" then restart Script Editor.
One more thing that would be nice is an applescript that will go through a document and delete the logger lines to clean up the code when you are all finished (ha! like that ever happens!). Some other day.
|
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.18 seconds |
|