# Install BSF4ooRexx on macOS

## BSF4ooRexx

Install BSF4ooRexx

1. Visit (https://sourceforge.net/projects/bsf4oorexx/files/)
2. Download BSF4ooRexx If you run Java 32-bit:
   1. Choose newest version of BSF4ooRexx (as of July 2016: choose folder GA (general available version), then folder BSF4ooRexx-450.20140914-GA)
   2. Download the 32-bit macOS version of BSF4ooRexx (as of July 2016: ooRexx420_WithBSF4ooRexx450.20141014-i386-MacOSX-GA.dmg)
   If you run Java 64-bit:
   1. Choose newest version of BSF4ooRexx (as of July 2016: choose folder beta, then folder 20150608)
   2. Download the 64-bit macOS version of BSF4ooRexx (as of July 2016: ooRexx420_WithBSF4ooRexx452.20160315-x86_64-MacOSX-beta.pkg.dmg)
3. Double click the dmg file
4. Right click the the package in the dmg file and select Open with -> Installer.app (default)
5. Go through the screens; confirm any popups. There might be a warning that the package is incompatible (it is not!)

Now, ooRexx and BSF4ooRexx are installed.

## Executing scripts

1. Open a terminal window (how?)
2. Navigate to the scripts location (the steps below navigate to the preinstalled samples).
   1. Enter "cd /Applications/ooRexx.app/Contents/samples/BSF4ooRexx" in the terminal and confirm by pressing enter
   2. Enter "ls" in the terminal and confirm by pressing enter to see the content of this folder
3. Run the script.
   1. Enter "rexxj.sh <filename>.<extension>" (e.g. "rexxj.sh HelloWorld.rxj") and confirm by pressing enter

Great! You have everything installed and ran your first script!