Mac Change All no longer works (again)

BlitzMax Forums/BlitzMax Bug Reports/Mac Change All no longer works (again)

I have noticed after 1.30 came out, Mac BMX file associations seem to have been lost. For some reason OSX has now reverted back to thinking that these files are UNIX executables.

Plus, when file association is set to BlitzMax, the file icon doesn't change to the BlitzMax one.

Change All has reverted back to not working again too...

Yes, I can confirm this bug! I have the same problem. It is more than just a little bit annoying because it makes opening files a pain in the you know what! Double-clicking of course does not work, but it is also much harder to use "Open with" since OS X does not recognize MaxIDE as capable of opening ".bmx" files. They don't show up as recommended.

The problem is caused by the Info.plist (inside the MaxIDE app). There is no file association data. I hacked it by adding the relevant xml (using Property List Editor), but that didn't work very well either for some reason.

When we are at this problem, I would like to suggest a more document-like icon for source files so that they are not as easily confused with the bins. I have double-clicked the wrong file several times.

An alternative to using MaxIDE on Mac OS X is to edit source in TextWrangler (it is free) and compile using bmk from Terminal. That is what I'm using at the moment. At least file association can be made to work with TextWrangler.

When I'm at that, the User Guide for bmk does not list the option for building GUI applications. It is "-t gui".

Thanks in advance, BMX is a great language! I'm using it all the time for different tasks.

The PC installer doesn't create file associations either.

I just downloaded a fresh copy of MaxIDE and this problem is not fixed. I'm using Mac OS X 10.5.5. I have tried everything. The most obvious thing to do is look inside the MaxIDE application bundle. The app bundle for 1.30 is incomplete. Info.plist lacks several required properties. For starters there is no "Document types" property, which explains why Mac OS X does not recognize ".bmx" as being associated with MaxIDE.

I have added all the missing properties to the Info.plist inside the MaxIDE app bundle.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleGetInfoString</key>
	<string>1.30, Copyright © 2008 Blitz Research. All Rights Reserved</string>
	<key>CFBundleShortVersionString</key>
	<string>1.30</string>
	<key>CFBundleVersion</key>
	<string>1.30</string>
	<key>CFBundleDisplayName</key>
	<string>MaxIDE</string>
	<key>CFBundleName</key>
	<string>BlitzMax IDE</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleIdentifier</key>
	<string>com.blitzmax.maxide</string>
	<key>CFBundleDocumentTypes</key>
	<array>
		<dict>
			<key>LSIsAppleDefaultForType</key>
			<string>Yes</string>
			<key>CFBundleTypeOSTypes</key>
			<array>
				<string>.BMX</string>
			</array>
			<key>CFBundleTypeName</key>
			<string>BlitzMax Source</string>
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>bmx</string>
			</array>
			<key>CFBundleTypeIconFile</key>
			<string>MaxIDE.icns</string>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
		</dict>
	</array>
	<key>CFBundleExecutable</key>
	<string>MaxIDE</string>
	<key>CFBundleIconFile</key>
	<string>MaxIDE</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
</dict>
</plist>

Unfortunately this does not help. Things get a little bit better. Now I can change files on a per file basis and get the proper icon. I still can't "Change All...". I get an unexpected error with error code -10813. Double clicking a newly created ".bmx" file still says there is no default application for this file type. MaxIDE is still not the recommended application etc.

This problem seems to run a bit deeper! Could there be a conflict in Mac OS X with the extention ".bmx"?

Hi,

I really don't know how to 'fix' this. People have sent me various things to stick in the app bundle over the years, but none have ever really properly worked.

Part of the problem seems to be with updating Applications/BlitzMax/MaxIDE.app - this appears to confuse the hell out of MacOS, and some docs get launched with the 'old' IDE, or forget their association altogether - but seemingly not all.

I've had so many problems with this (including MaxIDE's actually being launched *from the trash*!) that I have long since resigned myself to always using the IDE 'open' menu item - running the wrong IDE can have drastic consequences, esp. for me!

But if any Mac experts have some new advice here, I'm all ears!