Skip to content

Latest commit

 

History

History

Script-Debugger

Script Debugger Scripts

Scripts and clippings for use when working in Script Debugger.

Although not needed, the shortcut keys I use to execute these via Keyboard Maestro or Alfred are included in case you're interested

Contents

  • Duplicate TabF7

    • Duplicates the front tab, useful for making edits without breaking what is already written.
  • Handler TesterF6

    • This creates a second script for unit testing handlers within a script.

    • Result looks something like this:

      tell application "Script Debugger"
      tell document "Kevin's Library"
         waitForSafariToLoad()
       end tell
      end tell
  • Insert Dynamic Handler Description

    • Insert a handler description at the beginning of the handler currently selected. The description will inserted by creating a Script Debugger clipping dynamically with the handler's name and parameters.

    • Check out the demo below.

  • Open Used Script LibrariesO

    • Open the script libraries that are currently in use in the front script.
  • Run Front ScripthyperkeyR  🌎

    • Execute the frontmost script globally, I use this constantly for testing scripts in other applications.
  • Toggle Minimal ViewM

    • Hides/Shows the toolbar, sidebar, and logging panel.
  • My Clippings

    • Custom clippings I've made over the years. To use them save the .txt files into ~/Library/Application Support/Script Debugger 7/Clippings

File saving

  • Duplicate for GitHub

    • This duplicates the front script in its current file location as a .applescript file with unix style line endings so it is readable on GitHub.
  • Save As Text ScriptS

    • Prompts for a location to save a file as a text script with unix line endings for readability on GitHub.
  • Save a Copy of Front Script as TextS

    • Same concept as the Save As Text Script and Duplicate for GitHub but uses the command line to make sure a copy of the front script is made. This is my favorite of the 3 for now because it works more consistently and makes saving .applescript files for these github posts way quicker