Extension Projects (Mac IDE)

So I managed to get something working with the existing OSX 6M62 Interim binary, but depends on a little bit of shell knowledge to work. Basically we want to rename the existing intest binary and replace it with a bash script which, in turn, invokes the original intest binary with the correct parameters.

Caveat: I’ve tested this locally and seems to be working well, but proceed at your own risk! This is aimed at fixing the invocation of intest as included in the OSX 6M62 Interim release.

  • Locate the app on your machine (normally this would be here /Applications/Inform.app).
  • Open the app as a folder (ctrl-click → Show Package Contents) and navigate to Contents/MacOS.
  • Rename intest to intest.bin
  • Copy the following into a file named intest in the same folder (replacing /Applications/Inform.app in the last line with your app path from above):
#!/bin/bash

CAPTURE_EXTENSION=0
EXTENSION=""

for ARGUMENT in "$@"
do
	if [ $CAPTURE_EXTENSION -eq 1 ]; then
		EXTENSION="$ARGUMENT"
		CAPTURE_EXTENSION=0
	fi
   	if [[ $ARGUMENT == "-extension" ]]; then
   		CAPTURE_EXTENSION=1
   	fi
done

/Applications/Inform.app/Contents/MacOS/intest.bin "${EXTENSION%.i7xp*}.i7xp" "$@"
  • Open a terminal and enter the following (to make your new script executable), again replacing /Applications/Inform.app as above:
cd /Applications/Inform.app/Contents/MacOS
chmod +x ./intest

Let me know if this is helpful (and indeed if it works for you).