SIRXS for Mac OS X This version of SIRXS has been compiled for Intel chipped MacIntoshes. It was compiled and tested on Intel Mac OS X version 10.4.8. NOTES ====== X11 This version needs to run under X11. X11 is an optional package for Mac OS X and should be installable from you Mac OS CD or you can download the package from http://www.apple.com/support/downloads/x11formacosx.html You can run sirbatch, sirsqls, sirsqlb, pqlserver and master without X11. This beta version does not have an installation program. To install you need gunzip the download (sirxsmac.tar.gz) and extract the tar to the directory where you want the sirxs directory to be placed. To run sir you need to start the X11 system and then run sir from within that. You could add SIR to the X11 applications menu or use an applescript to make this simpler for end users. an example script to start sir when an associated file is opened might b : on open this_item tell application "Finder" launch application "X11" set theFile to POSIX path of (this_item as string) set theDir to theFile set x to the length of theDir try repeat until (theDir as text) ends with "/" set theDir to characters 1 thru x of theDir as text set x to x - 1 end repeat on error set theDir to "." end try set theCommand to "export DISPLAY=':0.0'; source ~/.sirxs;" set theCommand to theCommand & " cd " & theDir set theCommand to theCommand & ";sir " set theCommand to theCommand & " \\\"" & theFile & "\\\"" set theCommand to theCommand & "> /dev/null 2>&1 &" do shell script theCommand end tell end open The environment variable SIRDIR needs to be set to the location of the sir executables and the PATH and DYLD_LIBRARY_PATH environment variables need to include the sir directory. In the example above this has been done by executing a shell script in the user's home directory (.sirxs): export SIRDIR=/Users/david/sirxs/beta export PATH=$PATH:/usr/local/bin:$SIRDIR export DYLD_LIBRARY_PATH=/usr/lib:$DYLD_LIBRARY_PATH:$SIRDIR You can use external text editors from SIR but note that if you use a native Mac editor then you need to close the editor application (not just the document) before control is returned to sir. To use Safari as your html viewer, set the HTML Viewer in the Settings / preferences to "open -a Safari %file". Similarly, with FireFox "open -a FireFox %file". Mac OS mountain Lion. You are prompted when starting SIR to install Xquartz and then logout and in again. When you restart SIR it asks you to find X11.app at which point you have to browse to Applications/Utilities folder and choose Xquartz.