Script Debugger Changelog

What's new in Script Debugger 8.0.6 Build 8A69

Jun 27, 2023
  • 1830 Use SD Notary 2 if it is available.
  • 1833 Resolved a hang that can occur when balancing or hovering over source code containing very rare instances of unbalanced parentheses characters within a block comment and unbalanced parentheses characters in a line comment.
  • 1827 Fixed issue where printing sometimes failed.
  • 1832 Reinstated the deprecated OSAAppleScriptObjCEnabled Info.plist entry for script bundles that use AppleScriptObjC. This is no longer required, but there are suggestions its presence helps eliminate some unexpected crashes in deployed scripts. The boolean expert preference key PrefIncludeOSAAppleScriptObjCEnabled can be used to turn inclusion on or off.
  • 1831 Fixed issue where run-only exports can fail when bundling used execute-only script libraries.
  • 1828 Corrected a long standing regression that prevented Script Debugger from respecting the Set Default Script Size & State command.
  • 1825 Resolved a terminology conflict between the application class’ search string property and the dictionary window class’ search string property. Any scripts using the dictionary window class’ search string property must be changed to accommodate this change.
  • 1823 Corrected a display problem when viewing dictionary inspector search results.
  • 1822 Resolved a crash that can occur when the Printing theme is misconfigured.
  • 1820 Fixed issue where text encoding of .applescript files saved by Script Editor was not always properly detected.
  • 1817 Fixed bugs where exporting run-only from .scpt files. Used script libraries and user frameworks are correctly embedded when requested, and the source export preference is honored.
  • 1816 Resolved a problem where typed characters are inserted incorrectly while the Synchronize split-view selection Editor preference setting is enabled cause.

New in Script Debugger 8.0.5 Build 8A61 (Sep 8, 2022)

  • 1806 Addressed a problem where the Enhanced Applet sheet did not always display the script’s description properly in the startup screen.
  • 1744 Resolved a problem where typed text is incorrectly inserted when there are split views and the Synchronize split-view selection Editor setting is enabled.
  • 1814 Fixed a bug where the optional copy of a file’s source saved during export was wrongly encoded.
  • 1793 Enhanced applets no longer display a startup screen of the show startup option is off and there is no on open handler.
  • 1797 On-screen code formatting is not always appropriate for printing, especially in Dark Mode. Now you can define separate print-specific themes. You can do this by defining new themes with ” Printing” appended to their names, or defining a universal printing theme called “Printing”. Full details are in the Script Debugger Help entry for Themes.
  • 1784 The Unfold command works correctly when unfolding a single selected line containing a fold.
  • 1802 Code Folding is no longer applied when opening documents when Script Debugger is operating in LITE mode.
  • 1799 Corrected a problem where a make new document command which specifies a source text property value does not returns a reference to the newly created document.
  • 1796 Improved the display of application errors in explorers to include error descriptions where possible in the absence of an error message provided by the application it’s self. Added the errAEEventNotPermitted error to the list of known error codes.
  • 1792 Eliminated thousands separator in error number appearing in the Script Error panel.

New in Script Debugger 7.0.12 Build 7A112 (Aug 23, 2020)

  • 1387: Fixed bug where scripted save could remove custom bundle ID.
  • 1383: Resolved a hang that can occur when folding a block at the very end of a script and after which there are no blank lines.
  • 1366: When Enhanced Applets are saved-as in another bundle format, format-specific files will no longer be copied to the new bundle.
  • 1378: Corrected a problem where placing a line-comment (–) before a line continuation (¬) would cause Script Debugger’s parser to fail to recognize the subsequent line as executable.
  • 1380: Fixed menu update issues when registering or changing registration number.
  • 1385: Fixed regression where .applescript files were always saved with line endings set to As Is.

New in Script Debugger 7.0.2 Build 7A51 (May 14, 2018)

  • 1066 Resolved a hang that occurs when debugging Messages and Mail AppleScript handlers.
  • 1026 Added clippings tailored for Enhanced Applets.
  • 1074 Addressed a crash that occurs hen Script Debugger 7 is launched on 10.10 or earlier systems.
  • 1078 Fixed issue where inapplicable menu commands were enabled in explorers.
  • 1062 Resolved a crash that may happen when launching Script Debugger with the Restore Open Scripts preference option checked, and when there were open documents which no longer exist.
  • 1049 Further external links added to Help files.
  • 1068 Resolved a bug which prevents the reloading of libraries when recompiling scripts with debugging enabled.
  • 1069 Resolved a crash that may occur when ending an external debugging session.
  • 925 Resolved a crash that occurs when a script sends an AppleEvent with a timeout of 0 seconds.

New in Script Debugger 7.0.1 Build 7A50 (May 14, 2018)

  • 1060 Improved the display of customized keyboard modifier keys in menu items.
  • 1061 Fixed an issue where the value of NSNumbers directly created from chars could be displayed incorrectly.
  • 1059 Corrected typos in the alert confirming corrections to filename extensions.
  • 1055 Corrected the progress dialog strings displayed when searching multiple applications from the Applications inspector.
  • 1056 Improve Explorer Evolution to allow move/copy operations on element collections (e.g. Finder files) into another element collection (e.g. Finder 'folder').
  • 1050 Added clippings for the various AppleScript progress properties.
  • 1051 Addressed a regression in the windows collection where unscriptable windows were being reported.
  • 1054 Resolved a hang which occurred when a applet or droplet saved with debugging enabled attempts to initiate an external debugging session with Script Debugger Lite.
  • 1043 Added a handler type property to the script handler object to report the type of handler (event handler or subroutine handler).
  • 969 Updated Help with links to expanded explanations.
  • 1038 Fixed typo in name of appletUpdaterShouldPromptForPermissionToCheckForUpdates handler.
  • 1040 Resolved a crash that can occur when using the close saving ask command to close a document in a non-visible tab.
  • 1025 Added the PrefOpenQuicklyMinimumCharacters expert preference controlling the minimum number of characters needed to begin automatic searching in the Open Quickly panel. The default is 2.
  • 1036 Resolved a regression where Script Debugger's Execute command would pause at the first statement of scripts if the Persistent Properties setting was off.
  • 1030 Script Debugger now only opens scripts, dictionaries and text files. Script Debugger will refuse to open other file types, such as images.
  • 1034 Fixed potential recursion issue with Copyright Template.
  • 1032 Fixed issue where script libraries did not appear in document manifests if their use statements included the file extension.

New in Script Debugger 6.0.8 Build 6A225 (Mar 2, 2018)

  • 1003 Fixed issue where the open scripting command failed to resolve aliases.
  • 906 Dragging the splitter in the Bundle pane to the top no longer causes the Description head to disappear.
  • 908 Clicking on the Resources head in the Bundle pane no longer selects all entries.
  • 910 Fixes an issue where the bar at the bottom of the Bundle pane would appear empty.
  • 917 Resolved a crash that occurs when a script interactions with the SecurityAgent process while a password entry dialog is visible and active.
  • 900 Resolved a crash that occurs when deselecting all templates in the template chooser and then pressing the Choose button.
  • 877 Fixes issues with window placement when document tabs are dragged between screens.
  • 876 Corrected a text layout bug that can cause slowdowns when typing, selecting, opening, and compiling scripts.
  • 835 Resolved a problem where insertion locations were not displayed properly in the Apple Event log.
  • 857 Resolved issues that could cause exporting of code-signed scripts to fail.

New in Script Debugger 6.0.7 Build 6A217 (Dec 18, 2017)

  • Changes:
  • 812: Resolved a macOS High Sierra bug that caused Script Debugger’s Spotlight plugin to crash under certain circumstances.
  • 808: Resolved a regression in Script Debugger 6.0.6 which prevented the creation of new documents form templates that referenced script libraries in AppleScript use statements.
  • 826: When the AppleScript version in a script is “2.5” and the script is being edited under macOS High Sierra, terminology for code-completion is no longer filtered for version 10.13.

New in Script Debugger 6.0.6 Build 6A212 (Nov 24, 2017)

  • 795: Resolved a problem where bundled script libraries containing dictionaries are not properly loaded when scripts are compiled for the first time.
  • 796: Fixed bug where closing the Event Log sometimes left toolbar items in the wrong state.
  • 804: Resolved a crashing bug that occurred when using the Fold Handlers command on scripts containing script object declarations.
  • 803: Fixed issue where some files opened in High Sierra could not be saved.
  • 781: Resolved a problem where local variables containing script objects are not display correctly in the debugger when a use framework "Foundation" statement is present in the script.
  • 780: Fixed bug where some linebreaks in clippings files would be ignored.
  • 786: Several changes have been made to AppleScriptObjC code completion:
  • Terminology has been updated for High Sierra (macOS 10.13).
  • Filtering to remove heavily deprecated methods has been enhanced.
  • Availability filtering has been expanded to cover functions, constants and enums.
  • Where method names match variable names in a completion list, preference will be given to the method name.
  • Enums corresponding to large numbers beyond AppleScript’s integer range will now be handled more accurately when inserted as properties.
  • To work around a bug in macOS 10.13.0, the enum NSNotFound will always be inserted as a property when using completion.
  • When Use properties for Cocoa terms is on, enums for which numerical values are known will always be inserted as properties. Previously this would be done only if the enum was not preceded by “current application’s “; now any preceding “current application’s ” is also deleted.

New in Script Debugger 6.0.5 Build 6A205 (Jul 5, 2017)

  • 771: Applets in the Scripts menu are now launched rather than run by the system script runner.
  • 773: Fixed a crash that could occur when closing documents on Macs with Touch Bars.
  • 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.
  • 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.

New in Script Debugger 6.0.4 Build 6A198 (Feb 1, 2017)

  • 581: Resolved a crashing bug that can occur when a script window is scrolled and then closed in quick succession.
  • 662: Addressed a crash that can occur on rare occasions when opening scripts.
  • 713: tell blocks created via drag and drop now honour the “Reference applications by ID when pasting Tell blocks” preferences setting.
  • 718: If an applet sets a value for LSMinimumSystemVersion in its Info.plist file, Script Debugger will honour it when exposing AppleScriptObjC terminology in code-completion.
  • 719: Scripting now exposes an open on tabs property of the application class.
  • 720: Code signing now strips any resource forks (xattrs) within the bundle before signing. Unless they are removed, signing fails in Sierra. Also fixed a bug where the Property Persistence dialog was non-blocking.
  • 722: Code-completion can now also be triggered via the Complete command in the Edit menu.
  • 728: Resolved a problem where external debugging would file silently when Script Debugger’s template chooser panel was the topmost window.
  • 729: Script Debugger creates a ~/Library/Components folder if required when installing the Script Debugger.component file to facilitate external debugging.
  • 731: Resolved a crashing bug that can occur when creating documents from a template that cannot be found.
  • 733: Fixed problem performing a save-as of .applescript and .scpt files to some SMB volumes.
  • 736: improve handling of errOSASystemError errors reported from AppleScript API calls.
  • 737: Fixed bug where scripting’s ‘open’ command did not respect ‘showing dictionary’.
  • 742: Clicking on the Apple Event column title in the Event Log no longer generates an exception.
  • 747: Script Debugger will no longer show an empty dictionary window if you try to open an unscriptable application.
  • 748: Corrected a Script Debugger 6.0 regression where hovering over potential breakpoints when line numbers are visible does not produce the correct highlighting behaviour.
  • 750: Fixed bug where Progress dialog would sometimes not be dismissed after running script from Scripts menu.
  • 752: The script handler class now has a text source property for extracting the contents.

New in Script Debugger 6.0.3 Build 6A191 (Oct 24, 2016)

  • 555: Resolved a crashing bug that can occur when closing windows following a scrolling operation.
  • 675: Resolved a bug that could cause the document tabs to disappear when there are multiple files open.
  • 705: Addressed a Script Debugger 6.0.2 regression that could leave the user interface disabled.
  • 562: A progress dialog appears while Script Debugger is code signing a script. This should avoid the temporary hang which sometimes occurs while code signing large or complex script documents.
  • 702: Corrected a regression where the Explorer was incorrectly display both image and hex data for image values in Best view.
  • 703: Corrected a regression where Script Debugger fails to recognize NSURL instances referring to a file and display them using the File Explorer.
  • 704: To avoid codesigning errors, Script Debugger will strip resource forks/xattrs from all files in a bundle's /Contents/Resources folder before signing.

New in Script Debugger 6.0 Build 6A169 (Jun 24, 2016)

  • CODE SIGNING:
  • Script Debugger 6 adopts an always-on approach to code signing. Once you enable code signing for a script by selecting a developer ID, Script Debugger signs your script each time you save it. There is no requirement to go through a special Save or Export operation.
  • IMPROVED BUNDLED SCRIPT RESOURCE EDITING:
  • The Script Debugger 6 bundled script resource editor has been expanded. You are now able to edit a bundle ID, copyright string, marketing version string and build number. Script Debugger 6 gives you the option of auto-incrementing build numbers each time a script is saved.
  • Additionally, you are able to identify a Scripting Definition (SDEF) file from your script’s bundle and to select a developer ID to enable always-on code signing for your script.
  • You are able to specify a default copyright string which is used when creating new bundled scripts and applications. This default copyright string may contain clipping directives which are expanded at the time a new script document is created.
  • PROGRESS REPORTING:
  • AppleScript’s progress reporting properties (introduced in Mac OS X 10.10 Yosemite) are fully supported in Script Debugger 6. When a script begins reporting progress information by setting any of AppleScript’s progress reporting properties Script Debugger 6 responds by adding a progress bar display above the script’s source:
  • Script Debugger supports both determinate and indeterminate progress reporting.
  • Note also that progress information is shown in the window title bar and the script’s document tab. You can elect to dismiss the progress display by clicking the ‘x’ button.
  • OPEN QUICKLY:
  • The Open Quickly command, which allows you to easily search for and open scripts containing a particular term in the name or the body of the script, has been heavily revised for Script Debugger 6.
  • Improved Search Hit Display:
  • The Open Quickly window highlights the portion of the script’s name, description, Finder comment or script source that matches the search term(s) entered.
  • Discontiguous Searching:
  • Discontiguous search matches are reported (when a single search term is entered), similar to the way Xcode’s Open Quickly command behaves when looking up identifiers and source file names. When multiple search terms are entered the Open Quickly command looks for each term within the script name, description, finder comment and script source.
  • For example, if you have a series of scripts containing the same ‘writeToFile’ handler, you can locate these scripts by entering the search terms ‘write’, ‘writeToFile’ or ‘writeFile’.
  • EDITOR IMPROVEMENTS:
  • Code Folding:
  • Script Debugger 6 at long last provides code folding where you can collapse block structures and comments within your code to reduce clutter when editing.
  • Autocompletion:
  • Improved code completion to include all matching user defined identifiers, commands from target applications and AppleScript Objective-C identifiers.
  • AppleScript Objective-C Autocompletion:
  • AppleScriptObjC code completion covers the main Cocoa frameworks, and automatically handles insertion of current application's where required. The insertion can be either in-line, or in the form of automatically generated properties, with the ability to refactor between the two forms.
  • Automatic “it’s” Correction:
  • If you type “it’s ” in code, it will be changed to “its “. This avoids the new “– Grammar Police” comment being inserted by the compiler in 10.11 (El Capitan).
  • Terminology Clash Avoidance:
  • When using interleaved syntax for handlers, parameters will be escaped with pipe characters if they clash with defined terminology.
  • Identifier Case Changing:
  • Script Debugger 6 performs each script compilation in a new AppleScript compiler instance. This avoids a long standing problem where it was impossible to change the case of a variable, property, handler or script object once the script had been compiled.
  • Dash Support:
  • If you have Dash installed, you can turn on support so that option-clicking on a word will look it up in Dash. See … in Preferences.
  • Application, Script Library and Framework Picker:
  • Script Debugger 6 offers new powers for placeholders referring to applications, script libraries and AppleScript Objective-C framework names when existing clippings, text substitutions and command completions. Script Debugger offers a menu of running and favourite applications for application placeholders, a menu of installed script library names for script placeholders and a menu of commonly used framework names for framework placeholders.
  • DEBUGGING IMPROVEMENTS
  • Non-Persistent Global Variables:
  • A new Persistent Global Variables command has been added to the Script menu which allows you to determine if the value of global variables and properties persists from one run to the next. Note that when Code Signing is enabled, this setting is forced off to match the behaviour of signed scripts.
  • AppleScript Objective-C Value Exploring:
  • Script Debugger’s various explorers now support AppleScript Objective-C object references. Instead of seeing AppleScript Objective-C object references shown as «class ocid» id «data optr00000000F0FB3885FC7F0000», Script Debugger 6 shows you details of the object:
  • AppleScript Objective-C Value Viewers:
  • Script Debugger 6’s support for AppleScript Objective-C objects extends to displaying “native” viewers for dates and images.
  • Breakpoint Dragging:
  • Breakpoints, which allow you mark specific lines of your script where execution will pause in debugging mode, can now be moved by dragging them within the script’s gutter. Additionally, you can delete a breakpoint by dragging it out of the script’s gutter.
  • Popover Breakpoint Editor:
  • Double-clicking on a breakpoint in the script’s gutter allows you to edit a breakpoint in a popover window. You can also summon this popover window using the breakpoint contextual menu or the Edit Breakpoint command in the Script menu.
  • Remove All Breakpoints:
  • The Remove All Breakpoints command now confirms with you before removing all your breakpoints to avoid accidental breakpoint removal.
  • Remove All Disabled Breakpoints:
  • A new Remove All Disabled Breakpoints command has been added to remove all disabled breakpoints. Like the Remove All Breakpoints command, this new command confirms with you before removing all your disabled breakpoints to avoid accidental breakpoint removal.
  • Improved Current Statement Highlighting:
  • Like Script Debugger 5, Script Debugger 6 moves the current text selection to the current statement as you step through code or pause at breakpoints. However, Script Debugger 6 does not select the current statement’s trailing newline. This avoids some visibility problems which occurred for some users with Script Debugger 5 when their current statement highlight color preference was too similar to the system text selection color.
  • APPLEEVENT LOGGING IMPROVEMENTS:
  • Added Close and Clear Buttons:
  • Added a Clear and a Close button to the Event Log bar within the script window.
  • DICTIONARY IMPROVEMENTS:
  • Open Application Dictionary:
  • When the PrefChooseAppsUsingChooser expert preference is true, the dictionary chooser presented by Script Debugger when opening dictionaries lists scripting additions and script libraries just as the Script Editor does.
  • Better Application Scriptability Detection:
  • Script Debugger 6 improves the way it determines if an application is scriptable. For example, Apple’s Preview application is now recognized as scriptable.
  • FEATURES REMOVED:
  • Mac OS X Version Support:
  • Script Debugger 6 supports Mac OS X 10.10 (Yosemite) or later and Mac OS X 10.11 (El Capitan) is recommended.
  • Script Debugger Libraries:
  • Script Debugger 5’s library inclusion mechanism is no longer supported in Script Debugger 6. This means that Script Debugger 5’s Libraries pane has been removed along with the Flatten Script command found in the Export submenu of the File menu.
  • Script Debugger 6 provides a conversion service that translates Script Debugger 5 references into AppleScript use script statments.

New in Script Debugger 5.0.11 Build 706 (Jun 14, 2016)

  • Bugs closed:
  • 18293 Resolved a problem where the Close & Save alert that appears when closing a running script window appeared twice.
  • 13133 Addressed misc. stability issues.
  • 17988 Integrated Sparkle 1.13.1 to address security issues with software updates.
  • 17990 Addressed problems with the “Respond to applescript:// URLs” General preferences setting.
  • 17456 Improve the information presented when Script Debugger licensing problems arise.
  • 18122 Added the performSelectorOnSDMainThread and yieldToSDMainThread AppleScriptObjC methods to facilitate limited main-thread code execution within the Script Debugger environment.

New in Script Debugger 5.0.10 Build 685 (Jul 9, 2015)

  • This maintenance release makes Script Debugger compatible with Yosemite (Mac OS X 10.10) and addresses a number of stability and performance issues.
  • Bugs closed:
  • 18233 Add CFBundleAllowMixedLocalizations to Script Debugger to allow mixed english and localized strings.
  • 18220 Script Debugger now detects errOSACantStorePointers (-1763) errors when saving scripts and offers to recompile the script to clear any AppleScript Objective-C pointers retained in global variables.
  • 18217 Resolved a crashing bug that can occur when accessing one of Script Debugger's document properties through the scripting interface returning a text range.
  • 18216 Resolved an error position reporting problem when the error lies within property definitions preceding the first executable statement in a script.
  • 18209 Resolved a crashing bug that may occur when the AppleEvent log os overwhelmed by events.
  • 18203 Improved the display of Raw Syntax in the result display and other explorers throughout the application.
  • 18199 Resolved a hard crash when recording the actions of other applications.
  • 18198 Resolved a long standing bug where Script Debugger would fail to display image data (e.g. iTunes artwork) in the result browser.
  • 18188 Resolved problems displaying errors for scripts running in the non-current tab.
  • 18183 Resolved a crash that may occur when searching a dictionary.
  • 18195 [Yosemite] Resolved a crashing bug that occurs when running scripts from the Script Debugger scripts menu.
  • 18186 [Yosemite] Resolved a hand that can occur when displaying tooltip expressions on Yosemite systems.
  • 18185 [Yosemite] Resolved a hang that can occur when compiling scripts with expressions defined on Yosemite systems.
  • 18182 Stability improvements

New in Script Debugger 5.0.9 Build 642 (May 5, 2014)

  • 18149 Corrected a problem with the ‘considering’ and ‘ignoring’ templates inserted through command completion.
  • 18121 Resolved a problem with external debugging where debugging sessions did not end correctly if the script document was not already open in Script Debugger when the debugging session began.
  • 18129 Resolved a problem where breakpoints are not properly sorted by line number.
  • 18134 Script Debugger now properly saves bundled user templates.
  • 18142 Corrected a problem where scripts created from a user template may sometimes appear in tabs when they should appear in a new script window.
  • 18138 Corrected a series of issues that arise when editing text substitutions while the list of text substitutions is filtered. 18137 Resolved a crashing bug that could occur when Script Debugger is launched.
  • 18132 The ‘replace’ property of text substitutions can once again be edited.
  • 18127 Resolved a problem where the explorer fails to display items of lists within an application object property when displayed as the result of an AppleScript statement or as the value of a variable.
  • 18126 Resolved a Table Of Contents error that may cause items to be missing if a property statement contains – characters.
  • 18125 Resolved a crashing problem that may occur when initiating command completion.
  • 18123 Mavericks: Corrected a problem where Script Debugger’s QuickLook plugin is not used to display previews of .scptd documents on Mac OS X 19.9 systems.

New in Script Debugger 5.0.8 Build 633 (Jan 7, 2014)

  • This maintenance release makes Script Debugger compatible with Mavericks (Mac OS X 10.9) and addresses a number of stability and performance issues.
  • Bugs closed in the 5.0.8 release:
  • 18117 Limit AppleEvent Log to the most recent 5000 events. This avoids a potential memory exhaustion situation that can arise when scripts run for a long time or generate a massive number of AppleEvents.
  • 18111 Improve how Script Debugger activates its self when stepping through a sequence of AppleScript code that sends AppleEvents to an active target application.
  • 18113 Resolved a crashing bug that may happen when a folder within the Scripts or Clippings menus is renamed, moved or deleted.
  • 18110 Resolved problems that arise when the dictionary window is viewing an application that is later deleted using the rm command line tool.
  • 18105 Resolved a problem where Script Debugger would fail to overwrite an existing file when creating a new script from a bundled template.
  • 18101 Improved the handling of bundled templates when creating new scripts. Script Debugger only prompts you to immediately save the new script when its an ASObjC bundle.
  • 18098 Mavericks: Resolved a problem where the Export Run-Only Script and Export Flattened Script commands fail to work when running on Mac OS 10.9
  • 18100 Resolved a crashing bug that may happen in some instances when refreshing explorers containing AppleScript lists containing expanded object references showing properties in another application.
  • 18099 Resolved a explorer problem that arises when viewing AppleScript lists containing object references.

New in Script Debugger 5.0.7 Build 607 (Nov 11, 2013)

  • This maintenance release makes Script Debugger compatible with Mavericks (Mac OS X 10.9) and addresses a number of stability and performance issues.
  • Bugs closed in the 5.0.7 release:
  • 18096 Mavericks: Added a new bundled script template option with AppleScript Objective-C enabled. This option only appears when Script Debugger is running on Mac OS X 19.9 (Mavericks) systems.
  • 18085 Mavericks: Resolved a hang on Mavericks systems with with Xcode 4.x command-line tools installed.
  • 18088 Mavericks: Resolved a problem on Mac OS X 19.9 (Mavericks) systems where typing a " character results in an open and closing quote character being inserted into the script. This type of quote character is not recognized by the AppleScript compiler and causes compilation errors. This change also addresses a problem where typing -- results in a emdash (–) being inserted into the script.
  • 18083 Mavericks: Support "interleaved" handler declaration syntax
  • 18084 Mavericks: Script Debugger correctly parses scripts using the new use statement.
  • 18082 Mavericks: Holding the option key down when opening a script bundle with an associated SDEF causes the script's dictionary to be displayed (this modifier matches Apple's AppleScript Editor).
  • 18081 Mavericks: Resolved a bug where SDEF-defined terms in Mavericks library scripts did not appear when scripts are opened in Script Debugger.
  • 18080 Mavericks: Opening a run-only script bundle containing an SDEF causes the script's dictionary to be displayed.
  • 18068 The Copy Reference command in the Variables panel once again copies variable references to the clipboard.
  • 18079 Resolved a crashing bug that can sometimes happen when displaying the Scripting Additions dictionary.
  • 18077 Improve 'path to me' support
  • 18072 Resolved a potential memory leak when closing the Open Quickly panel.
  • 18067 Corrected a regression in the 5.0.6 maintenance release where Script Debugger may crash in some instances when updating the Scripts or Clippings menus.

New in Script Debugger 5.0.5 Build 560 (Jan 5, 2013)

  • Bugs closed:
  • 17779 Script Debugger now generates bundle IDs for bundled compiled scripts and applets/droplets. A new Bundle ID field has been added to the Resources tab for editing a script's bundle ID. Additionally, a new Bundle ID Prefix field has been added to the General prefs panel to control the prefix used to build default bundle IDs when scripts are created.
  • 17119 Improved the accuracy of the timer when stepping through scripts, and when the Event Log is visible.
  • 17871 Resolved a problem where the properties of all text suite objects in the Tex-Edit Plus application dictionary are missing.
  • 17870 Improved performance when displaying large lists of object specifiers in the result viewer.
  • 17865 Corrected a regression introduced in Script Debugger 5.0.4 which prevents Script Debugger from recognizing when faceless background applications such as System Events or Image Events are launched or quit.
  • 17863 [Crash] Resolved a crash that can occur when undoing a compile operation where placeholders are present from a previous Paste Tell or insert clipping operation.
  • 17821 [Crash] Resolved a crash that can occur when using the Help menu to search the Script Debugger's menus and help book after the Paste Tell item in the Edit menu has been used to explore application object models.
  • 17815 [Crash] Corrected a crash that occurred when AppleScript returned the errOSAStackOverflow status value when Script Debugger is trying to determine if the value of a property or variable has changed. AppleScript may report errOSAStackOverflow when script objects contain very large arrays of values.
  • 17801 [Crash] Resolved a crash that may occur when the contents of Script Debugger's Scripts or Clippings folders changes while the Key Bindings preferences panel is open.
  • 17808 [Crash] Resolved a crash that can occur when a script with its event log visible targets an application that is deleted between successive runs.
  • 17780 Corrected a Script Debugger 5.0.4 regression which causes the Comment and Uncomment commands to eat newlines.

New in Script Debugger 5.0.4 Build 534 (Sep 22, 2012)

  • Bugs closed:
  • 17769 Resolved issues when using the Find panel to search for whitespace within a script.
  • 16268, 17765 Added an 'in window' parameter to the 'open' command in Script Debugger's scripting interface. When specified, this parameter causes newly opened documents appear in new tab within the specified script window.
  • 17761 Improved selection management when inserting clippings that use the [[select:]] directive.
  • 17755 Resolved a problem where text replace operations involving Regular Expression groups are not properly substituted.
  • 17757 Resolved a crash that occurs when a script document's 'properties' property is read while the document its self does not have a 'last result' value (i.e. has never been run).
  • 17742 Corrected a problem where it became impossible to close a window following an attempt to save a script with a compilation, and the user elects to save the script as text.
  • 17744 If you have any of the Activate SD On Pause, Activate SD On End or Activate SD On Error, SD will post user notifications to the Mac OS X 10.8 User Notification Centre.
  • 17697 Resolved a crashing bug that occurs when Script Debugger is asked to quit as part of a system shutdown or user logout.
  • 17736 Corrected a problem introduced by the Mac OS X 10.8.2 update that causes SOAP and XML-RPC events to hang when sent from Script Debugger.
  • 17730 Corrected a problem where Script Debugger failed to send Crash Reports to Late Night Software on Mountain Lion (10.8) systems.
  • 17685 Corrected a bug where the Event Log does not properly filter events targeted at remote machines (using the eppc:// protocol).
  • 17556 Resolved a problem where clicking on enumeration links in the Scripting Additions dictionary window dod not lead you to the definition for the enumeration.
  • 17714 Resolved a crash that occurs when an external debugging session ends with no result value returned from the script being debugged.
  • 17715 Resolved a crash that may occur when using the Forward and Backward buttons in Value Explorers.
  • 17710 Entering a backslash key no longer causes paired chevron characters to appear when the Auto-Pair Delimiters Editor preference is checked.
  • 17684 Resolved a crash that may occur when closing windows with the Event Log visible.
  • 17698 Resolved a crash that may happen when resuming script execution.
  • 17695 Resolved a regression that causes Script Debugger 5.0.3 to crash when displaying compilation errors on 32-Bit Intel Macintoshes.
  • 17707 Corrected a regression introduced in Script Debugger 5.0.1 which caused the Compile Error sheet to incorrectly display run-time error values.

New in Script Debugger 5.0.3 Build 504 (Aug 13, 2012)

  • Bugs closed:
  • 17364 Resolved a problem where external debugging sessions did not end correctly and could cause Script Debugger and the applet/droplet being debugged to hang.
  • 17486 Scripts auto-saved by the AppleScript Editor on Mountain Lion systems with uncompiled changes are correctly opened.
  • 17676 Resolved a problem where Script Debugger is unable to send AppleEvent commands to sandboxed applications (Mail, TextEdit, QuickTime Player, etc.) on Mountain Lion (10.8) systems.
  • 17674 Resolved a problem where script compilation errors were not reported properly in some instances when expressions are present.
  • 17667 Resolved a crashing bug that can occur when displaying the Progress dialog during a compile.
  • 17651 Resolved a problem where the Page Up/Page Down/Home/End keys don't work correctly int he Explorer Outline view.
  • 17641 The Bundle editor now allows you to preview the contents of files using Quick Look.
  • 17630 Resolved a problem where Script Debugger fails to properly copy multiple scripts embedded within a bundled script (.scptd document).
  • 17642 Resolved a crashing problem which may occur when a lot of Event Log activity takes place.
  • 17614 Corrected a crashing bug that can occur when saving scripts that reference non-applications with tell blocks.
  • 17633 Improve performance when running scripts once the Event Log pane has been shown, and then hidden in the script window.
  • 17616 Resolved a regression in the 5.0.2 release that may cause the Open In Tabs preference to be ignored when re-opening scripts.
  • 17631 Resolved a series of problems that may lead to Cocoa exceptions when using the Replace All command.
  • 17632 Corrected a newline problem in the XML manifest report.

New in Script Debugger 5.0.2 Build 473 (Jul 14, 2012)

  • 17584 Resolved a crash that can occur when closing a paused document with leaked resources (e.g. unclosed files opened with the 'open for access' command).
  • 17570 The Recompile command is once again operational.
  • 17565 Corrected a problem where Script Debugger would not quit if the top window is an Event Log window.
  • 17489 Resolved a problem where Script Debugger would crash opening multiple document tabs on 10.6.4 systems.
  • 17548 Resolved a crash that happens when the event log window is opened, closed, reopened and then closed while the document remains open.
  • 17528 Script Debugger reopens scripts in their tabs rather than in separate windows following a crash.
  • 17521 Corrected a problem where text selections may not be drawn properly following a Replace All operation.
  • 17512 Resolved a problem where Script Debugger may report a parameter error (-50) when a script stops on 10.6.4 systems.
  • 17517 Improve the presentation when confirming document saving while closing a window with multiple dirty tabs.
  • 17487 Libraries added from the Application Support folder now default to 'Relative To Application Support'.
  • 17480 Resolved a problem where Script Debugger crashes when launched on 10.6.4 systems.
  • 17505, 17543, 15974 Resolved a series of memory related bugs that may improve overall stability.
  • 17494 Improved performance when opening and compiling longer scripts.

New in Script Debugger 5.0.1 Build 434 (Jun 19, 2012)

  • 17450 Bug fixes to address stability issues that can arise when closing script windows.
  • 17372 Corrected a problem where 'CGAffineTransformInvert: singular matrix' messages may appear in the system console when opening documents in Script Debugger.
  • 17457 Restored the inclusion of script descriptions when printing script documents.
  • 17442 Resolved a crash that may occur when examining 'alias' object references from System Events in the result viewer.
  • 17443 Resolved a problem where the state of the 'Show Raw (Chevron) Syntax' menu item in the View menu can fall out of sync when this setting is altered using the Explorer's contextual menu.
  • 17427 Corrected a bug where incorrect filename extensions where applied when file name extensions are hidden in the Save panel.
  • 17396 Resolved a crash that may occur when dragging Suites from the Dictionary Outline in the Scripting Additions Dictionary.
  • 17424 Resolved a crash that may occur when updating the Event Log display.
  • 17423 Resolved a crash that may occur when displaying an entire scripting addition in the Scripting Additions Dictionary window.
  • 17425 The Result Explorer appearing within the Event Log initially displays "Empty" when first displayed.
  • 17410 Resolved a intermittent crashing bug that occurs when updating toolbar items.
  • 17417 The Template Chooser panel is closed (if its open) when a script document is created via an AppleEvent.
  • 17414 Improved the handling of quoted strings in the Open Quickly panel. Searching for 'tell application "Mail"' now succeeds where it failed to find hits in the past.
  • 17413 The Help button in the Open Quickly panel now moves properly when the panel is resized.
  • 17405 Corrected a problem with the fonts used in the Timer toolbar item.
  • 17406 Corrected a problem where the Script Libraries and Templates folders were not being created within the ~/Library/Application Support/Script Debugger 5 folder the first time Script Debugger 5 launches.

New in Script Debugger 5.0 Build 424 (Jun 7, 2012)

  • Script templates
  • Tabbed document windows
  • Open quickly
  • Inline find and replace
  • Inspector window and result drawer unification
  • New bundle editor
  • Inline dictionary viewer
  • Floating mini debugger
  • Result bar
  • New Apple event log
  • Explorable local variables
  • Conditional breakpoints
  • Separate running and debugging toolbars
  • Unified dictionary window: improved object model diagrams
  • Improved spotlight indexing
  • Fully 64-bit native
  • AppleScript only
  • Legacy features removed: support for legacy AppleScript features has been removed as they are no longer offered by Mac OS X. As such, Script Debugger no longer saves carbon applets and resource-fork compiled scripts but continues to open these legacy document formats.
  • New value explorer:
  • More aggressive application exploration
  • See multiple formats at once
  • Element filtering
  • Improved handling of large element collections
  • Best date and HTML views

New in Script Debugger 4.5.7 (Jul 20, 2011)

  • Addressed a problem where the Dictionary/Explorer control in the Dictionary window was not updated to 'Dictionary' following a search.
  • Added support for ASObjC scripts by allowing 'class "ClassName"' constructs to compile.
  • Script Debugger no longer attempts to compile scripts when saving changes to an existing Text (.applescript) document.
  • Script Debugger no longer causes AppleScript to convert "reference" to "specifier" when compiling scripts.
  • Script Debugger no longer crashes when creating new documents on Lion (Mac OS X 10.7).
  • Resolved a bug in the Balance command that could result in crashes if compound AppleScript statements tell x to y, if x then y) appear within a block style comment.
  • Another attempt to resolve the intermittent crashes which began with the release of Mac OS X 10.6 (Snow Leopard).
  • Resolved a problem where the Dictionary window fails to dictionary descriptions for multiple items selected from the browser.
  • Resolved a problem where application bundles saved as 32-bit appear as PowerPC applications in the Finder.
  • Fixed a typo in the property definition clipping.
  • Script Debugger 4.5 can now co-exist with installations of the forthcoming Script Debugger 5.0.

New in Script Debugger 4.5.5 (Aug 30, 2010)

  • New Features:
  • A new 32-Bit Only option has been added to the Save As panel allowing you to create 32-Bit applets directly from Script Debugger. This avoids having to visit the Finder's Get Info window to select the 32-Bit Only execution option. Script Debugger also warns you when saving a 64-bit capable Applet/Droplet that uses 32-bit only Scripting Additions.
  • Script Debugger's Apple Event Log window logs error information when commands fail.
  • Bug Fixes:
  • This version of Script Debugger contains several changes that improve application stability.
  • When exporting a Run-Only script over an existing file, Script Debugger ensures that pre-existing recovery and QuickLook preview data is removed.
  • When opening text scripts Script Debugger now assumes UTF-8 encoding unless the file contains an explicit encoding indication (BOM, etc.). Script Debugger also correctly handles opening of legacy MacRoman text scripts.
  • When Script Debugger's Open and Save panels are in column view, they once again respond correctly to keyboard driven selections by presenting document previews or sub-folder contents.
  • The Script Debugger 4.0 OSA component is removed (if it is still present) to avoid the possibility of memory corruptions that might destabilize Script Debugger 4.5.
  • Script Debugger auto-saves documents each time they are compiled. This may slow things down slightly, but it will improve Script Debugger's ability to recover the contents of open documents in the event of a crash. Previously, Script Debugger auto-saved only before a document was executed.
  • FontSyncScripting.app is no longer mistaken as a Scripting Addition.
  • Script Debugger no longer needlessly updates the value displayed in open Viewer windows each time a script pauses. Viewer windows now only update when the value of the variable/property being viewed actually changes.
  • Resolved a bug that caused Script Debugger to crash when AppleScript reports error text ranges that lie beyond the end of the script. This happens most commonly when you have an unclosed quoted string within a block comment.
  • The 'under' handler parameter is no longer mishandled by the AppleScript Debugger.
  • Script Debugger once again opens the iCal dictionary along with any other application that takes advantage of the XML xinclude directive in its dictionary meta-data.
  • The Manifest command once again correctly reports applications referenced in scripts.
  • Script Debugger is much more forgiving when opening scripts with missing or incorrect filename extensions.

New in Script Debugger 4.5.4 (Feb 1, 2010)

  • Snow Leopard: global variables are once again correctly displayed in the Variables browser on Mac OS X 10.6.x systems.
  • Tiger: the AppleScript Formatting preferences panel no longer fails to load on Mac OS X 10.4.x systems.
  • Resolved a crash that occurred after the AppleScript Formatting preferences panel has been used.
  • Added a new Edit License… command to the Script Debugger menu. This command allows you to enter new software registration information should you need to re-license Script Debugger.
  • When Script Debugger detects that too many copies of Script Debugger are using the same license, it now names the machines that are using Script Debugger to help identify the cause of the problem.
  • Corrected a parsing error where # characters appearing within a block comment would cause the parser to fail to parse the remainder of the script in some instances.
  • The Manifest command once again correctly shows the events generated by a script.
  • Pressing the Tab key in the dictionary Search Results panel now moves keyboard focus to the description area of the window.
  • Corrected a terminology conflict that prevented the creation of ‘file’ objects on 10.4 systems. Scripts that use the file property of Script Debugger’s document object must be updated to use the ‘file spec’ property.
  • Changed the ‘source’ constant to ‘source code’ and changed the ‘raw’ constant to ‘raw code’ to avoid terminology conflicts with scripts that used these terms as variable names.
  • The Fonts & Colors preferences panel now lets you set Snow Leopard’s new AppleScript formatting options. A crashing bug that occurred if you double-clicked in the blank area below the last formatting option has been resolved.
  • Corrected a problem where getting the value of the ‘scripts menu folder’, ‘clippings menu folder’ or ‘script libraries folder’ properties of Script Debugger’s application object would fail intermittently.
  • Dragging text from a script window to another application now includes style information.
  • The Mail dictionary now shows ‘unicode text’ instead of ‘utf8’ for properties returning a unicode text value.
  • Bundled compiled scripts exported as Run-Only bundled applications no longer includes Recover/QuickLook data that could reveal the source code for your script.
  • Corrected a crashing bug that occurred when code completion was used with JavaScript OSA.
  • Corrected a crashing bug that occurred when using Find Next/Previous Handler commands in scripts with inconsistent line endings.
  • Corrected a parsing error that prevented the compilation of code that uses statements like ‘tell (…... to …...)’ when debugging is enabled.
  • Script Debugger now offers to install itself in /Applications after it has been run directly from the installation disk image.
  • Corrected a problem that caused the insertion point to be in the wrong place when dragging items to the last line of a script.
  • Corrected a series of parsing bugs that sometimes caused parts of scripts to be omitted from the Table Of Contents menu.
  • Script Debugger now correctly preserves line endings when opening and then saving text script files.

New in Script Debugger 4.5.4 Beta 2 (Oct 2, 2009)

  • 14840 Corrected a parsing error where # characters appearing within a block comment would cause the parser to fail to parse the remainder of the script in some instances.
  • 14844 The Manifest command once again correctly shows the events generated by a script.
  • 14852 Pressing the Tab key in the dictionary Search Results panel now moves keyboard focus to the description area of the window.
  • 14839 Corrected a terminology conflict that prevented the creation of 'file' objects on 10.4 systems. Scripts that use the file property of Script Debugger's document object must be updated to use the 'file spec' property.
  • 14830 Changed the 'source' constant to 'source code' and changed the 'raw' constant to 'raw code' to avoid terminology conflicts with scripts that used these terms as variable names.
  • 14858 The Fonts & Colors preferences panel now offers to let you set Snow Leopard's new AppleScript formatting options. A crashing bug that occurred if you double-click in the blank area below the last formatting option has been resolved.
  • 14855 Corrected a problem where getting the value of the 'scripts menu folder', 'clippings menu folder' or 'script libraries folder' properties of Script Debugger's application object would fail intermittently.
  • 14850 Dragging text from a script window to another application now includes style information.
  • 14824 The Mail dictionary now shows 'unicode text' instead of 'utf8' for properties returning a unicode text value.
  • 14860 Bundled compiled scripts exported as Run-Only bundled applications no longer includes Recover/QuickLook data that could reveal the source code for your script.

New in Script Debugger 4.5.4 Beta 1 (Sep 20, 2009)

  • 14836 Snow Leopard: global variables are once again correctly displayed in the Variables browser on Mac OS X 10.6.x systems.
  • 14806 Tiger: the AppleScript Formatting preferences panel no longer fails to load on Mac OS X 10.4.x systems.
  • 14846 Resolved a crash that occurred after the AppleScript Formatting preferences panel has been used.
  • 14829 Added a new Edit License… command to the Script Debugger menu. This command allows you to enter new software registration information if you should need to re-license Script Debugger.
  • 14828 When Script Debugger detects that too many copies of Script Debugger are using the same license it now names the machines that are using Script Debugger to help identify the cause of the problem.

New in Script Debugger 4.5.3 (Jun 11, 2009)

  • The ‘file spec’ document property has been renamed ‘file’. This change corrects a terminology conflict that caused AppleScript to rewrite ‘file spec’ as ‘file’ following a compile.
  • Addressed a problem where references to ‘path’ outside a tell block generated incorrect 4-character codes (as compared to Apple’s Script Editor).
  • Corrected a block auto-close/balance bug that happens when unbalanced )}] characters appear in a — style comment.
  • The ’stic’ enumeration associated with the ‘display dialog’ command is once again displayed correctly.
  • Resolved a hanging bug when exploring the InDesign dictionary.
  • When pasting Object Reference as nested tell blocks, the code respects the existing tell context.
  • Corrected a problem in the Tell Context inspector that caused the inspector to stop displaying the current tell context after inspecting the ‘disk’ property of any Finder element.
  • Addressed a crashing problem when getting ‘properties of document 1 of application “Adobe InDesign”‘.
  • Added a ‘Paste Object References as nested Tell blocks’ preference to the Editor preferences panel.
  • Holding down the Option key while pasting Object References inverts the ‘Paste Object References as nested Tell blocks’ preference setting.
  • Shift-Command-C now copies an explorer value (available from the Edit and Contextual menus).
  • Pasting an object reference into a script now results in a series of nested tell blocks rather than a single object reference string.
  • Resolved a balance problem that caused block auto-closing to fail if AppleScript block statements (if, repeat) appear within a block comment.
  • The Script Debugger dictionary viewer now correctly displays property/parameter/result types when a type is defined as both singular and plural in the SDEF XML.
  • Unicode characters appearing in AppleScript error messages are now displayed correctly in Script Debugger’s Script Error panel.
  • Resolved several bugs that occurred when using fonts that don’t map into the legacy QuickDraw font model.
  • Adjusted dictionary search results so that partial hits matching the start of a name are weighted higher than partial hits in the middle or end of a name.
  • Addressed a crash that could sometimes occur when closing documents.
  • Addressed a crash that occurred when expanding a browser item for which there is an open viewer window.
  • Addressed a crash that occurred when canceling the Set Keystroke dialog using the Escape key.
  • Addressed a hanging bug that occurred when Script Debugger was stressed heavily during the running/stepping of scripts. This fix also addresses a memory leak that occurred stepping through a script under scripting control.
  • A long standing intermittent crashing bug that occurred creating new documents has finally been resolved.
  • Issuing a Cut, Copy, Paste, or Delete command in the Dictionary Search results pane no longer causes a hang.
  • The scripting interface now correctly reports a script is not debuggable when you try and step into/over/into a script which does not have debugging enabled.
  • Tooltip evaluation tooltips are now properly removed when dictionary windows are opened using the Command-D shortcut.
  • Uncommenting lines without a comment no longer causes leading whitespace to be stripped.
  • Removing the Step Over, Step Into, and Step Out toolbar buttons no longer renders the corresponding menus inoperable.
  • The ’scripts folder’ and ‘clippings folder’ properties in the scripting interface have been renamed ’scripts menu folder’ and ‘clippings menu folder’ respectively to avoid a terminology conflict with the ’scripts folder’ constant defined in the Standard Additions.osax.
  • Option- modifier problems when using Norwegian keyboard layouts have been corrected.
  • Option- modifier problems when using German keyboard layouts have been corrected.
  • Write-only properties are no longer displayed in the Dictionary Explorer.
  • Leopard-style selection highlighting is used when showing balancing brackets and braces while typing.
  • Hiding/Showing the Dock when the dock is positioned on the right of the screen no longer causes inspector windows to move.
  • Auto-paring problems relating to typing ‘(’ before ‘”N” & aVar’ have been resolved.
  • Addressed an issue in the Scripts and Clippings inspectors that could case the Hide/Show Icon state to become confused.
  • Implemented a performance improvement when opening scripts with the ‘Warn when applications may be launched’ setting turned on. Script Debugger no longer loads the dictionaries of all installed Scripting Additions.
  • New Fatten preference has been added. A hidden preference ‘PrefFlattenAtBeginning’ that controls where libraries are placed when flattening scripts has been added. By default, libraries are placed before the main script. Setting this preference to ‘no’ with the Unix ‘defaults’ command causes libraries to be placed after the main script. No UI is planned for this preference setting.
  • Script Debugger now allows you to continue when it detects that there are duplicate symbols coming from libraries.

New in Script Debugger 4.5.2 (Jan 15, 2009)

  • Addressed a problem where the Scripting Additions window would fail when displaying the Leopard version of Standard Additions.osax. This fix also brings Script Debugger's handling of escaped sdef elements into line with changes introduced in Leopard.
  • Each Folder Actions event and the Handle CGI Request event once again appear as events in Scripting Additions dictionary window.
  • A series of stability problems with the Dictionary Explorer have been resolved. As the Dictionary Explorer appears in many places in the Script Debugger user interface, these fixes greatly improve Script Debugger's overall stability.
  • Stepping with an active viewer window now leaves the viewer window active rather than bringing the script window forward.
  • A hang when exploring Adobe Acrobat Professional has been resolved.
  • The error message for the bdNamErr (-37) error has been improved. This error appears when saving a script with a '/' in its name.
  • A problem where a 'Volume Not Found' error can sometimes occur when saving new documents has been resolved.
  • Addressed a problem that prevented script compilation on some Japanese systems when debugging is enabled.
  • Problems committing changes in the Text Substitution prefs panel have been corrected.
  • A Text substitution indenting problem has been corrected.
  • A problem where block auto-closing fails for blocks preceded by 2 or 3 blank lines from the beginning of a script has been resolved.

New in Script Debugger 4.5.1 (Dec 19, 2008)

  • Bug Fixes:
  • Addressed a problem affecting Japanese systems that prevented the compilation of scripts when debugging is enabled.
  • Addressed an NSRangeException that could occur when inserting a new line before an unterminated string literal.
  • Addressed a series of stability issues relating to the dictionary Explorer and the Tell Context inspector.
  • Added a new preference to the Opening section of the General preferences panel to enable or disable the alert that appears when opening scripts that may cause the launch of one or more applications.
  • Added an 'expert' preference setting that causes script auto-saving to occur following a compile. To enable this setting, quit Script Debugger, and enter the following command into the Terminal. NOTE: Turning on this setting may unacceptably slow Script Debugger 4.5's compile performance. defaults write com.latenightsw.ScriptDebugger PrefAutoSaveOnCompile yes
  • Addressed a bug where the position of the initial window (created when Script Debugger is launched) does not avoid inspector windows when an inspector window is positioned along the left edge of the main monitor.
  • Addressed a bug where an 'end' block is incorrectly inserted when a statement begins with a word starting with the characters 'on' (e.g. 'one').
  • Addressed an NSRangeException when inserting a new line into a script that ends with '--' (and no trailing new line character).
  • Changed the constant 'running' to 'executing' in the scripting interface to avoid a conflict with AppleScript's 'running' property.
  • The 'Paste as String Literal' command no longer escapes new line characters. This avoids a problem where pasted new lines incorrectly result in double new lines following a compile.
  • Addressed a series of problems with Script Debugger's External Debugging capability.
  • Addressed a problem where Script Debugger's evaluation tooltip may not be removed when switching to another application using Command-Tab.
  • Added an 'expert' preference setting that allows you to define applications that are ignored when determining which applications may be launched when opening a script. To use this setting, quit Script Debugger, and then use the 'defaults' Terminal command. The following example causes Script Debugger to ignore the 'System Events' and 'Database Events' applications when reporting applications that may launch as a consequence of opening a script: defaults write com.latenightsw.ScriptDebugger PrefConfirmAppLaunchOnOpenIgnored -array com.apple.systemevents com.apple.databaseevents
  • Hidden element references are no longer reported in the 'Where Used' sections of dictionary descriptions.
  • Addressed a problem where Auto-hilite of opening ([{ would fail when entering a ]}) character right after an existing ]}) character.
  • Addressed a crashing bug when compiling statements beginning with 'at ' when debugging is enabled.
  • Addressed a hang when compiling scripts where a # character appears within a (* *) style comment block when debugging is enabled.

New in Script Debugger 4.5 (Nov 25, 2008)

  • Improved Editing:
  • The editor now fully supports Unicode on Leopard systems. Unicode text will be properly retained when scripts are compiled or opened, allowing you to include text in multiple languages and alphabets within your scripts.
  • Script Debugger now ‘auto-saves’ recovery information whenever you execute a script. Should AppleScript, Script Debugger or a Scripting Addition crash, Script Debugger will recover the script the next time it’s launched, preventing the loss of valuable work.
  • Script length limitations removed on Leopard systems. Script Debugger would previously lose its ability to display AppleScript formatting for long scripts (>3000 lines). This limitation no longer exists when running on a Leopard system.
  • You can now split the editor vertically and/or horizontally. This lets you view and edit multiple sections of a script at the same time, enabling you to easily spot changes or similarities.
  • The Find & Replace panel now provides Regular Expression searching using the ICU Regular Expression engine. This lets you perform powerful Regular Expression-based finds and text substitutions on your scripts without resorting to an external text editor.
  • The editor now automatically closes AppleScript block structures as you type. If you type ‘repeat with i from 1 to 10’ followed by Return, for example, Script Debugger will automatically insert the matching ‘end’ statement, allowing you to enter AppleScript block structures more quickly.
  • The editor now provides a Text Substitution feature that allows short keywords to be replaced with boilerplate code as you type. Typing ‘dd’, followed by a space, for example, causes ‘display dialog "message"’ to be inserted with ‘message’ selected. You can define your own text substitutions to suit your scripting environment.
  • The editor now automatically closes parentheses and quotes as you type, making it easier to enter string literals, lists and records into your script.
  • Script Debugger 3.0’s 'Edit with BBEdit' command has been reintroduced and now works with Bare Bones Software’s BBEdit and TextWrangler or with MacroMate’s TextMate text editors. This command lets you temporarily transfer a script to one of these editors to take advantage of their powerful features.
  • The new Text Completion command includes explicitly declared identifiers from the script (handler names, global variable names, property names, script object names, local variable names, and variables appearing in ‘repeat with’blocks) and terms from the AppleScript, Scripting Additions, and current tell context dictionaries. Handler name completion includes parameters, allowing you to quickly enter terms as they are editing a script.
  • A warning panel now appears when Script Debugger is about to launch applications to complete a Look Up Definition search. You can choose which applications to launch, thereby avoiding delays while applications launch as well as consumption of memory.
  • When opening a script that may cause the launch of applications, Script Debugger now offers you the choice of opening the script or recovering its plain text source to avoid the delay in launching applications.
  • Major improvements made to the UI for Editing Libraries include: a new popup button listing the libraries in Script Debugger’s Application Support/Libraries folder, making it possible to add libraries without going through the Open File panel; the ‘Relative To’ popup in the Add Library open panel now changes directories to match the relative path chosen; and the libraries toolbar button in the script window now offers a popup listing the libraries in Script Debugger’s Application Support/Libraries folder. This makes the management of libraries associated with a script vastly more efficient.
  • Balance command now handles compound statements (tell x to y, if x then y), and balances string literals and comments, making it a more reliable tool for selecting blocks that can then be moved, copied or deleted.
  • Added TextMate’s Command-Return behavior that inserts a new line after the current line regardless of where the insertion point is within the line.
  • Improved Debugging:
  • You can now invoke a script’s ‘on open’ handler using a ‘tell document x to open {file 1, file 2}’ statement from another Script Debugger script window. ‘On open’ events are added to the Event History menus so that they can be quickly recalled from the UI.
  • Script results and View windows can now display Unicode strings (related to the Editor’s Unicode improvements), allowing you to more easily debug scripts that work with strings written in various languages and alphabets.
  • You can now invoke subroutines in a script via the scripting interface: ‘tell document x to subroutineName(p1, p2)’. Subroutine call events are added to the Event History menus so that they can be quickly recalled from the UI.
  • New optional toolbar buttons have been added to toggle the Break On Breakpoints and Break On Exceptions debugger settings.
  • Value view now handles application references using the typeApplicationBundleID AEDesc.
  • Improved Dictionary Window:
  • Script Debugger provides expanded and improved documentation for AppleScript’s built-in data types, helping novices understand AppleScript’s built-in data types. Experienced users can more easily recall the terms that AppleScript’s built-in types offer.
  • Scripting Additions browser now shows the location of Scripting Additions via icons in the browser. This lets you easily figure out where a Scripting Addition is installed on your Macintosh.
  • Sections in the dictionary display are collapsible, allowing you to hide dictionary information that is not relevant to your task.
  • Improved the performance of the code that generates the Open Dictionary submenu.
  • Application and Scripting Additions dictionaries can be viewed in multiple windows (Dictionary>Open In New Window Command).
  • Other Major Improvements:
  • Script Debugger 4.5 is scriptable. The scripting interface allows scripts to create, edit, compile, execute and save script documents. The scripting interface also lets you invoke event handlers and subroutine handlers in other script windows.
  • New Scripts menu and inspector have been added where you can place scripts that drive Script Debugger. Key bindings can be assigned to scripts for frequently used operations. The new Scripts menu and inspector support OSA scripts, applications, Unix scripts (sh, ruby perl, etc.) and Automator workflows. You can use the Scripts menu/inspector to run a wide variety of scripts that take full advantage of Mac OS X.
  • User configurable Command Keys bindings. This let you define command key shortcuts for comments that you use frequently. It also allows you to change or remove command key shortcuts provided by Script Debugger. Command Keys bindings can also be assigned to clippings or scripts.
  • Added Quick Look support. This lets you view the source of your scripts without having to open the script in Script Debugger. It also allows you to avoid launching applications that may need to be running in order to view the script in Script Debugger.
  • Reveal in Finder command added (File>Reveal in Finder), works with script documents, dictionaries and browser values that refer to files/folders.
  • Spotlight importer improvements to better handle scripts with bad HFS file types and to correctly index bundled scripts and applets/droplets.