ANNOUNCE: Script Debugger 6.0.5 (6A203)

Hi Folks,

Here’s a new Script Debugger 6.0.5 build. You can download the new build here:

##Changes in build 6A203:

  • 769: User canceled errors in scripts run from the Scripts menu will no longer result in error dialogs.

  • 764: Fixed regression in display of linebreaks and tabs in results explorers.

  • 770: Corrected regression where opening a script library via the Open Viewer command when the Open In Tabs preference setting is enabled results in a new window being created.

##Changes in build 6A202:

Resolved an expired security certificate issue that prevented clean installations of the 6A200 build.

##Changes in build 6A200:

  • 765: Text selection range is restored when opening a script in a new tab.

  • 768: It is now possible to change the current tab via scripting by setting the current document property of the script window object.

  • 757: Addressed a crashing bug that occurs when AppleScript begins returning the errOSAInternalTableOverflow error.

  • 753: Several changes have been made to the way script documents are opened, particularly when opened via a script.

    • When opening a document via script, the command will return as soon as the document is open, and not after a 5 second delay.

    • The open command will return references to any script documents opened, and if the command specifies script dictionaries, reference to the dictionary windows.

    • If you open several scripts’ dictionaries at once via scripting, the first will open in any existing dictionary window or a new window, and the rest will open in separate dictionary windows.

    • When you try to open a document via a script and there is an error – for example, if the script was saved run-only – the error will no longer cause a modal dialog to appear in Script Debugger, but will instead be returned just as a scripting error. This means you can now wrap opening documents in a try block.

    • If a script document has a scripting definition file, you can now have both the script and the dictionary open at the same time.

    Scripts in Script Debugger’s Scripts menu will now be run in a process separate from Script Debugger. This has several consequences:

    • Scripts targeting Script Debugger will require explicit tell blocks.

    • When scripts are running, you will see the small spinning gear in the menu bar that you see when running scripts from Apple’s Scripts menu. Any use of Apple’s progress properties will display in the same area.

    • Script that try to use AppleScriptObjC to modify the host’s behavior will have no effect on Script Debugger.

    • Scripts with crashing errors, especially AppleScriptObjC errors, will no longer crash Script Debugger.

    • Running scripts that open documents in Script Debugger will no longer generate spurious timeout errors.

1 Like

I see we’ve only had 3 downloads of this 6.0.5 beta. Please take this build for a spin and report any problems as I would like to release Script Debugger 6.0.5 as soon as I can.

Downloaded now, and will test this weekend.

###Testing Script Debugger 6.0.5 (6A203) on macOS 10.11.6

This script seems to work as expected.

Thanks for making the current document property changeable.

tell application "Script Debugger"
  -- Returns ALL Script Windows ---
  set winList to every script window
  -- Returns ALL documents from all windows, single list --
  set docList to every document
  -- Return all documents, as sub-items to each window --
  set tabList to documents of every script window
  set tabCurr to current document of script window 1
  tell script window 1
    set docListW1 to every document
    set current document to last item of docListW1
  end tell
  delay 1
  set current document of script window 1 to tabCurr
end tell