Can't open two blitzmax apps at the same time

Miscellaneous Forums/MacOS X Discussion/Can't open two blitzmax apps at the same time

..
I should have spent 20 additionnal seconds in the blitz documentation.
Here's a code snippet that shows how to handle 'open file' request and file drag'n dropped into the dock-icon of your blitz app:

Repeat
	Local event = PollEvent()
	If(event = 0) Then Exit
	If(event = EVENT_APPOPENFILE) Then 
		Print "Open file request="+EventText()
	EndIf
Forever