Running IDL or ENVI under Macintosh
You can run IDL or ENVI in one of two ways:
You can also enable accelerators that use the Alt key to work with the Macintosh Apple key (also known as the Command key). For details, see the topic "Enabling Alt Key Accelerators on Macintosh" in IDL Help.
Running IDL or ENVI from Applescript
To run IDL or ENVI, click on one of the Applescript applications in the ITT_DIR/idlxx directory. Table 7-1 describes the complete list of applications.
Note
For versions of Macintosh OS that provide both 32- and 64-bit architectures, IDL and ENVI run in 64-bit mode by default. Each applescript (e.g. idl.app) has a 32-bit version (e.g. idl32.app) if you prefer to run in 32-bit mode. If these applescripts do not produce the expected results, you may need to set environment aliases. See Setting Up Your Environment.
Manually Creating an Alias to an IDL or ENVI Applescript
To manually create a Macintosh alias to an IDL or ENVI Applescript, on your desktop or other convenient location:
- Open a Finder window, and navigate to the
ITT_DIR/idlxxdirectory of your IDL or ENVI installation. - Identify the Applescript icon for which you would like to create an alias, for example,
IDLWorkbench. - While holding the Option and Command keys on your keyboard, click and drag the target icon to your desktop. Copying or moving the Applescript to another location (rather than creating a Macintosh alias) will cause the Applescript to fail.
Running IDL or ENVI from the Command Line
This section covers how to run IDL or ENVI from the X-Windows prompt on Mac OS X.
- Launch X11 from the
/Applications/Utilitiesfolder. X11 displays a UNIX X-Windows command line in an OS X window. - Before you can run IDL or ENVI, you must set up each user's environment on the machine that will be running it. See Defining Environment Variables and Aliases.
- You can now start IDL or ENVI or any of the following executables by entering one of the following commands at the command line:
All available commands are listed in Table 7-2.
For versions of Mac OS X that provide both 32- and 64-bit architectures, run the commands in Table 7-2 in 32-bit mode by entering a -32 flag after the command (e.g., idl -32). If these commands do not produce the expected results, you need to set environment aliases. See Setting Up Your Environment.
For information on other startup options, see Command Line Options for IDL Startup in Using IDL.
Running the IDL Virtual Machine under Macintosh
You can run the IDL Virtual Machine from Applescript or from the command line.
Running from Applescript
To start the IDL Virtual Machine, double-click on idlvm.app (or idlvm32.app for 32-bit) in the ITT_DIR/idlxx directory.
Running from the Command Line
To run a *.sav file in the IDL Virtual Machine:
- Start X11.
- Enter
idl -vm=<path><filename>.savat the X11 Terminal prompt, where<path>is the path to the*.savfile, and<filename>is the name of the*.savfile. The IDL Virtual Machine window is displayed. - Click anywhere on the IDL Virtual Machine window to close the window and to run the
*.savfile.
To launch the IDL Virtual Machine and select a *.sav file to open:
Running IDL Runtime Applications under Macintosh
To run a *.sav file in the runtime version of IDL:
- Start X11.
- Enter
idl -rt=<path><filename>.savat the X11 Terminal prompt, where<path>is the path to the*.savfile, and<filename>is the name of the*.savfile. - The application contained in the
*.savfile is run in the runtime version of IDL.
When a *.sav file is run with the idl -rt command on a machine without an IDL license, it will run in the IDL Virtual Machine.