Script Debugger 5.0 introduces the concept of script templates which are used to create new script documents. Script Debugger 5.0 provides a selection of pre-written templates or create your own to speed the construction of new scripts.
Tabbed Document Windows
Tabbed document windows allow you to view multiple AppleScript scripts in a single Script Debugger window, making it simpler to work with multiple scripts.
Script Debugger 5.0 allows you to use Mac OS X’s Spotlight to locate AppleScript scripts and applets on your Macintosh. Enter terms into this panel and Script Debugger 5.0 will locate all the scripts containing the terms in the script’s name, its source text and its description, and within any Finder comments assigned to the document.
Inline Find & Replace
The Find & Replace panel has been redesigned. Find & Replace operations are no longer modal and the Find panel no longer obscures portions of your script’s text when in use.
Inspector Window and Result Drawer Unification
Script Debugger 5.0 combines Script Debugger 4.5′s various floating inspector panels and its Result drawer into three ‘tabs’ displayed along the right-hand side of each document.
New Bundle Editor
Script Debugger 5.0 offers a new bundle editor where you can manipulate the resources contained within a bundled script or a script application. You can open resource files or drag new resources into the bundle directly in Script Debugger.
Inline Dictionary Viewer
Script Debugger 4.5′s Applications and Lookup Terms inspectors have been combined into a single Dictionaries inspector. Script Debugger 5.0′s new Dictionaries inspector shows dictionary information for any selected item.
Floating Mini Debugger
This new window floats above all your applications. Use this version of Script Debugger’s AppleScript debugger to step through your script without causing Script Debugger itself to interfere with the ordering of applications on your Macintosh.
The Result Bar provides a new way to view the result of scripts using very little screen space and is perfect when you don’t require all the power of Script Debugger’s Explorers and Variables browsers.
New Value Explorer
A central feature of Script Debugger is its value Explorers which let you inspect values. For Script Debugger 5.0, value Explorers have been completely re-implemented and simplified. The result is a much more powerful and efficient tool for examining values and exploring the objects and properties offered by the scriptable applications that you control in your scripts.
More Aggressive Application Exploration
Script Debugger 4.5′s Explorers were constrained in their ability to explore applications with limited dictionaries. Script Debugger 5.0′s Explorers employ a series of workarounds for common dictionary problems to see deeper into application object models.
When you use the Paste Tell feature of Explorers to paste object references, the resulting object references include the AppleScript equivalent of any workarounds that the Explorer used. This avoids a problem where you can see a value in an Explorer but cannot generate AppleScript code that obtain the same value.
At the same time, Explorers are more efficient in how they interact with the applications. This results in far fewer AppleEvents being sent to applications.
See Multiple Formats at Once
Script Debugger 5.0 lets you see a value in Best, Source and AEPrint formats all at once by Shift-Clicking on the formats you want to see.
Script Debugger 5.0’s new Scope Bar lets you remove unwanted information from Explorers. For example, unselecting the ‘Empty Elements’ filter removes empty elements from the Explorer’s display.
Improved Handling of Large Element Collections
Script Debugger 4.5 could slow down when displaying large element collections, such as the rows in a database. Script Debugger 5.0 avoids this problem by initially displaying only the first 30 rows. Data is then retrieved from the application for only those rows visible in the Explorer. Other rows are read only when they are scrolled into view. Press the new show more button to view additional rows.
Best Date & HTML Views
In addition to the ‘Best’ viewers for lists, records, object references, files, and images, Script Debugger 5.0 introduces new viewers for dates and HTML text.
New Apple Event Log
Script Debugger 5.0 introduces an entirely new Apple Event Log which is integrated directly into the script window.
Apple Events are now retained even when the log is not visible, allowing you to look at the event log without having to plan ahead. Additionally, you can change formats (source, raw, AEPrint) on the fly without having to re-run your script.
It is also possible to explore the result of any Apple Event in the same way that you can explore any other value in Script Debugger.
When debugging is enabled, selecting an Event in the Event Log selects the statement in your script which generated the Event.
Explorable Local Variables
When stepping through handlers, local variables containing object references can be explored in Script Debugger 5.0. Additionally, object references passed into handlers can show the target application.
Script Debugger 5.0 lets you assign conditions and actions to breakpoints.
Separate Running & Debugging Toolbars
Script Debugger 5.0 offers two toolbar configurations: one for when debugging is disabled; and another for when debugging is enabled. You can customize the toolbar based on how you are using Script Debugger 5.0.
Unified Dictionary Window
Script Debugger 5.0 unifies all application dictionaries into a single window, allowing you to quickly move between application dictionaries.
Script Debugger 5.0 uses Spotlight to locate all the scriptable applications on your Macintosh.
Improved Object Model Diagrams
Script Debugger 5.0 improves its object model diagrams by showing element (one-to-many) relationships, and property (one-to-one) relationships.
Improved Spotlight Indexing
Script Debugger’s Spotlight indexing has been improved to gather new information from more types of scripts.
Fully 64-Bit Native
Script Debugger 5.0 is now fully 64-Bit Native so it can take full advantage of 64-Bit Scripting Additions and other 64-Bit system resources.
To simplify Script Debugger’s User Interface and improve its AppleScript code-building tools, it is no longer possible to edit or run scripts written in other OSA scripting systems.
Legacy Features Removed
Script Debugger 5.0 requires Mac OS X 10.6 or later. 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.