README OS X.TXT PHREEQC A program for speciation, batch-reaction, one-dimensional transport, and inverse geochemical calculations This file describes the batch version of PHREEQC version 3 for OS X. Only the features and differences from the Linux version are discussed. Please refer to the README file in the phreeqc folder for additional information. This version of PHREEQC is compiled for OS X (10.6 and up) by using the source code destributed with the Linux source version; no changes have been made to the code. Compilation used the command-line tools as distributed by Apple, Inc., using system 10.6.8. The .dmg file, once opened in Finder, reveals a window containing the phreeqc folder and this file. To install PHREEQC on your system, drag the folder to a location on your Mac for which you have write permission. This will typically be your Documents folder or another folder within your Home directory. PHREEQC is not designed to operate within your Applications folder, as it requires writing to a log file created in the phreeqc folder. The installed phreeqc folder has the exact same directories and files as the Linux distribution except as discussed below. There is an AppleScript application called "run phreeqc" to make it easier to use the program on OS X; the source code for this AppleScript is in the src folder. The test folder contains two shell scripts (test and clean) renamed from .sh files to .command files to enable running them directly from Finder. Minor additions to the code for these scripts have been made to enable them to operate within the test folder. Terminal will open when either test.command or clean.command is run. To operate PHREEQC, open or double-click on the run phreeqc application. After the brief instruction dialog, you will be prompted to select files for input, output, and database. The input and output files may be stored anywhere on your system, but the database files must remain in the database folder. Because the run phreeqc application relies on a certain directory structure, the distribution files should not be relocated. Note that the PHREEQC executable (in the bin folder) also can be run from Terminal, for example by opening it in Finder. There are two common issues that may arise when operating PHREEQC on OS X. First, the input file must have Unix line endings (LF). This is the default for OS X, but if you move files from Windows/DOS or from classic MacOS you will need to re-save them using a text editor such as TextWrangler™ (available from www.barebones.com). Second, you may encounter security warnings because run phreeqc and the PHREEQC executable are not registered with Apple, Inc. You may need to temporarily change your security settings or Control-click on the run phreeqc application and select Open from the pop-up menu to allow continued operation without warnings on your system. Help files and documentation are provided; see the README file for details. In order to use the compiled html (.chm) file on OS X, an application such as CHM Reader can be used.