Automatizated
tasks around the ImageJ §1 software using the AppleScript
technology §2 with Mac OS X
This page shows some applications programmed in AppleScript to pilot some ImageJ processes.
----
Principle:
--MacOS
X -+
-
-- ---+-- ----
Apple
Script is a technology developped by Apple since several years to
automatize finder repetitive tasks and to pilote applications. These
properties are used in this present work to pilot ImageJ.
- Pilot ImageJ with AppleScript upon Mac OS X3 and Mac OS X4 using "Do Shell Commands": 
- How to install and run a plugin macro with AppleScript and Shell commands - Examples.

- How to protect special characters into ImageJ macro code and AppleScript code with TextEdit.

- Pilot ImageJ with AppleScript upon Mac OS X4 using UI Scripting:
- How to install and run a plugin macro with AppleScript and GUI Scripting - Examples.

- ImageJ MacroSet Demo (April 2006). An AppleScript application, allowing an automatic ImageJ piloted sequence with MacOS X4.

- Use of ImageJ shell commands with AppleScript upon Mac OS X3 and Mac OS X4:
- DoShellCommand
Maker (April 2006 [4]). An AppleScript application making "do shell commands" for ImageJ.
- PolygonExample (April 2006 [4]). An AppleScript application running in batch, the Polygon macro, using a self built "do shell command".
- ImageJVersion (April 2006 [4]). An AppleScript application returning the ImageJ version using a self built "do shell command".
- The ij.jar Version (April 2006 [4]). An AppleScript application returning the version of an ij.jar file using a self built "do shell command".
- Applications for Mac OS X3 and Mac OS X4:
- ImageJ X Live Updater 2 (June 2006) [5]. Live updates ImageJ -
compatible with all the ImageJ distributions. It manages the version
numbers using shell commands, makes update reports, and links to ImageJ
News.

- ImageJ X Live Updater (April 2006). An
AppleScript application for live update ImageJ - compatible with all the ImageJ distributions.
- ImageJ Switcher (April 2006). An
AppleScript application for switch from the "Windows-look" ImageJ
distribution introduced in march 2006 to the "Mac-look" ImageJ
structure.

- ImageJ Updater 2 (April 2006). An
AppleScript application for updating
ImageJ - compatible with all the ImageJ distributions.
- ImageJ Updater (July 2004 [3]). An
AppleScript application for updating
ImageJ - required an ImageJ distribution 1.34 or later.
- Here is some examples of
applications, using the propreties of the MacroSet.txt and
StartupMacros.txt files to pilot ImageJ:
- StartupMacro (december
2005). An AppleScript application using the "StartupMacros" files, with a
self-contained ImageJ macro code, for Mac OS X4.
- IJd&d - MacOSX3 and Later (June 2004 [1], updated January 2008). An AppleScript application using the "MacroSet" files, with a self-contained ImageJ macro code,
for Mac OS X3 to X5.

- IJStartUpd&d - MacOSX3 and Later (July 2004 [2], updated January 2008). An AppleScript application using the
"StartupMacros" files, with a self-contained ImageJ
macro code, for Mac OS X3 to X5.

Notes about AppleScrip and Mac OS
X
- Avoid starting a process when an AppleScript application is
running.
- UI Scripting has some limitations with ImageJ. It can't detect
the end of a process, so the use of "Delay" commands is necessary.
The values have to be adjusted according to the computer speed. To automaticaly manage these delays, see ImageJ MacroSet Demo.
References:
- Works
about the piloting of ImageJ, specific to Mac OS X.3:
- Automatization of the ImageJ updates:
- Use of ImageJ commands by AppleScript:
- [4] 4 April 2006,
ImageJ News: v1.37c, Gilles Carpentier has created a web page that explains how to send commands to ImageJ from AppleScript.
Special
thanks to Alessandra Albano for the English correction of this page.
--