All the command line parameter stuff needed to be rewritten because the way it worked was fundamentally incompatible with Mac/Cocoa GUI infrastructure. For example, we now allow you to drag main.lua or folders containing main.lua onto the Application or Dock icon to load/run a simulation. But this mechanism was confused by the old command line argument system. For now, all command line switches require the form:
-key value
(and notice the single dash, not double.)
If you need to launch Corona with a specified project, you must now specify a switch called -project in front of it.
Example:
Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator -project /Applications/Corona.268/SampleCode/GettingStarted/HelloWorld/main.lua
If you were using any other switches, those probably broke too. Let me know if you were using them.
However, moving forward, we encourage you to not launch through the command line if you can avoid it. We are introducing a URL scheme/handler so you can open scripts in a much more flexible manner:
Example:
corona://open?url=file:///Applications/Corona.268/SampleCode/GettingStarted/HelloWorld/main.lua
So things like NSWorkspace openURL, typing in Safari, or calling open on the command line e.g.
open “corona://open?url=file:///Applications/Corona.268/SampleCode/GettingStarted/HelloWorld/main.lua”
should generally work and is not dependent on the location of the app or the whether the application is closed or already open (unlike the command line switch).
Our intention is to make it much easier for 3rd party apps to invoke/integrate with Corona using standard Mac mechanisms.
Right now, we only support opening local files (file:///). and it must be a main.lua or a folder containing a main.lua.
[import]uid: 7563 topic_id: 6315 reply_id: 21988[/import]