AppleScriptObjC Explorer 2F

Now free!

Test and debug AppleScriptObjC code under OS X 10.6, 10.7, and 10.8

Use as an external editor for Xcode 4

AppleScriptObjC Explorer 2 is a script editor that takes advantage of AppleScript’s ability to call Cocoa methods. AppleScriptObjC — AppleScript with the added ability to call OS X’s Objective-C-based frameworks using AppleScript syntax — opens enormous opportunities for AppleScript users.

AppleScriptObjC applications can have full, rich interfaces. However, access to this ability usually involves dealing with some of the intricacies of Apple’s development editor, Xcode. Xcode is a powerful tool, but its primary target is Objective-C programmers; AppleScript support is tacked on, with very limited support. There are no debugging tools, very limited logging, and as of Xcode 4, even the ability to compile and display proper AppleScript syntax styling are absent.

You can also gain access to much of the power of Cocoa in AppleScript applications built outside Xcode — for example, if you want to add Cocoa-based routines to existing AppleScript scripts and your interface requirements are simple. You can do this in AppleScript Editor in OS X 10.7 and later, but the support is very limited — there is no logging, which makes debugging especially tedious. AppleScriptObjC Explorer 2 runs on Mac OS X 10.6, 10.7, and 10.8.

AppleScriptObjC Explorer 2, Mavericks and Beyond

OS X 10.9 introduced significant changes to AppleScript, with the introduction of AppleScriptObjC-based libraries. It also introduced a new interleaved syntax that more closely matches that of Objective-C. Supporting these changes and maintaining backwards compatability was not possible. Instead, a new application, ASObjC Explorer 4, has been written as a successor to AppleScriptObjC Explorer 2.

Read about ASObjC Explorer 4 here.

New in AppleScriptObjC Explorer 2.5.x

* Script stepping. You can now step through scripts a statement at a time using new Step, Resume and Resume to Selection commands.

* Updates to exported apps. Exported apps get individually named executables, plus correct name in their application menus.

* Bug fixes. Fixes to compiling, saving as .applescript files, and logging time-stamps.

New in AppleScriptObjC Explorer 2.4.1

* Comprehensive scriptability. See the Help and its dictionary for full details, and download some simple sample scripts HERE.

* Scripts menu. Somewhere to store and run your scripts.

* Code-completion improved. An intermittent crashing bug has been squashed and completion has been tweaked.

* Bundle identifier changes. The code introduced in the previous version for generating bundle identifiers got a little over enthusiastc, and has been suitably restrained.

New in AppleScriptObjC Explorer 2.3.4

* OS X 10.6 crashing fixed. Works around a frameworks bug that can cause crashes under OS X 10.6.x in 64-bit mode, especially when showing dialogs.

* Bundle identifier generated. A full identifier is generated when a file is first saved, based on the identifier in Preferences and the file name.

* Better results. Logging of the result of running scripts has been improved.

* UI improved. Double-clicking on the split pane's divider now collapses the bottom/right pane.

* Window scripting. Windows are now (minimally) exposed to scripting.

New in AppleScriptObjC Explorer 2.3.3

* New contextual-menu and Help menu command for searching documention in the free documentation browser AppKiDo. Read about AppKiDo HERE.

* Mountain Lion support. AppleScript Editor in OS X 10.8 Mountain Lion can save .scpt, .scptd and .app script files uncompiled. AppleScriptObjC Explorer 2.3.3 can read the code in these files. See HERE for further details.

New in AppleScriptObjC Explorer 2.3

* Improved code-completion. Behavior is less restrictive, copes with stand-alone Xcode, elimintates more unusable terminology, and has optional possessive completion for class names.

* Select Block command. Select the lines around a selection to completely encompass the containing block.

* Run-to-selection feature. Now you can run and log your script, and have it pause when it comes to the section you're most interested in.

* Wrapped-line indenting. Wrapped lines are indented, by a user-configurable amount.

* Configurable tab size. Small indents or large indents — set them how you want them.

* Your choice of color. You can set the Script Pane background color, the Log Pane background color, and the selection paragraph highlight color.

New in AppleScriptObjC Explorer 2.2

* Split-pane editing. You can swap the Log Pane for a second Script Pane. Swap back and forth as you need.

* In-app updates. You can check for updates manually or automatically.

* Improved Xcode compatibility. AppleScriptObjC Explorer is now an even better external editor for Xcode projects.

* Optional autosaving. Turn Lion's autosaving and versioning on or off: it's your choice.

* New shortcuts. Add and remove logging code, and escape/unescape strings.

* Improved exception handling. This will help track down problems.

* Printing support. Print your scripts, with or without line-numbering.

* Even better logging. Log entries now include script line-numbers. Option-clicking on a log entry will highlight the calling script statement. Callbacks are handled more gracefully.

* ASObjC Runner export. A new command enables direct export as ASObjC Runner scripts.

New in AppleScriptObjC Explorer 2.1

* Code-completion. The biggest new feature is smart code-completion. You can set it to automatic or manual. For methods, colons are converted to underscores, and for classes and enums, completion will also insert "current application's" if required. You can tell at a glance whether a term is a class, method, or enum, what type of method, and even the integer equivalent of enums.

You can control which frameworks the terms are gathered from, as well as which AppleScript classes, and you can load both on the fly. If a term clashes with an AppleScript keyword, pipe characters will be inserted before and after the name automatically.

Code-completion is highly configurable: you can set whether it is case-sensitive, how many characters before it kicks in, the delay before the completion list appears, whether the script's own terms should be incorporated, and more. You can also configure the role of the main completion keystrokes.

AppleScriptObjC Explorer's code-completion helps you avoid annoying typing mistakes, and makes a great prompt for recalling method and enumeration names. The result is the ideal code editor for AppleScriptObjC.

* External editing for Xcode. This version changes the way .applescript files are handled. Instead of opeing them as untitled documents, AppleScriptObjC Explorer 2.1 opens (and saves) them as .applescript files. You can open your scripts from Xcode using its contextual menu, edit and save, and the results will be automatically reflected in your Xcode project. No more poor syntax formatting, no more having to run to compile, and you get compile errors that more accurately pinpoint the problem area.

* New shortcuts. There are up to 13 new shortcuts. Three are defined — one to comment selected lines (the comment string is configurable), one to uncomment selected lines, and one to insert boilerplate code for text item delimiters — and the other ten are user-configurable. The entries support basic placeholders for the selection, and are assigned the keyboard equivalents of command-0 through command-9 or control-0 through control-9.

* Navigation menu. The navigation menu below the toolbar lists all handlers in the script, and you can use this to quickly scroll to them. Hold the option key as you click on it and the handlers will be listed in alphabetical order.

* Enhanced AppleScript class loading. You can load extra AppleScript class files as before, via the Export Drawer, and you can now also do it via a new Load AS Classes... menu command, and by storing class files in a global folder for automatic loading. You also control whether their terminology is available in code-completion.

* Framework loading. You can load extra Frameworks into the application, and set them to reload at launch if you wish. You can also control whether their terminology is available in code-completion.

* Logging improvements. You can now set the size at which strings and data are truncated. You have a choice of three styles of timestamp: the existing Absolute time style, an Elapsed style that shows the number of seconds since the script was started, and a Relative style that shows individual timings for each result. The contents of the Log Pane can now also be copied as styled text. And you can control the formatting used for real numbers, including whether larger values should appear in scientific style or remain in decimal style.

* Revamped Preferences panel. Separate tabs means greater convenience and the ability to revert separate areas to defaults separately. New controls let you enable or disable autosaving, and change line-endings in saved .applescript files.

* And more. Enhanced scripting support for documentation searching, easy access to the application's support folder, and highlighting of the paragraph containing the selection.

New in AppleScriptObjC Explorer 2

* Document-based. You can have multiple projects open at one time, with full support for New/Open.../Open Recent/Save/Save As.../Revert to Saved... commands.

* Native document format. Documents are saved as packages that include the script in text format for safe-keeping.

* Opens all script file formats. AppleScriptObjC Explorer 2 will open .applescript, .scpt, .scptd and .app AppleScript files (if they have not been saved as execute only), opening them as untitled documents to avoid accidental over-writing.

* Simplified application export. As you update your project, you can build new versions of an application with a single command — no dialogs, no fuss.

* More control over exported applications. The new Export Drawer lets you set more application parameters, including minimum OS requirements, version and copyright strings, and what types of files will be accepted for drag-and-drop. You can also specify files to be added to the exported application's Resources folder.

* Load AppleScriptObjC class files on the fly. Applications and sample code that rely on multiple AppleScriptObjC classes can be tested with the extra classes loaded into AppleScriptObjC Explorer 2 itself.

* Support for snapshots. Easily save multiple versions of your projects.

* Autosaving. You can have your files autosaved for crash recovery.

* New Preferences options. Set defaults for application export and window settings.

* Adjustable log type size. Eyesight and screen resolution vary; now you can change the log type size on the fly.

* Extra shortcuts. Convert between POSIX and HFS paths, paste Objective-C method calls as AppleScriptObjC handler calls, wrap the selection in quotes.

* Quick Look support. Quickly see what's in a file using Quick Look.

* Autosaving and versions. AppleScriptObjC Explorer supports autosaving, Lion's Version Browser, and associated enhancements.

* Enhance find and replace. AppleScriptObjC Explorer supports Lion's Find Bar, Safari-style highlighting, and incremental searches.