- Home /
How to open a file (double-click or drag n drop) with Mac standalone player?
This works fine in Windows: if I right-click on a file and say "Open With" and then select my app, then that file path is passed in as a command line argument.
Having trouble on Mac though. Even if I change the Info.plist so that the file extension is associated with my app and the file's icon matches my app's icon... the path of the file never shows up as a command line argument.
Any help would be much appreciated.
Answer by Sphax84 · Nov 09, 2016 at 05:54 PM
I have exact same problem.
Working fine on Windows but file path is not passed to standalone in commandline on MacOSX... Worst, it seems that the Unity standalone display an error dialog saying "The document could not be opened. Cannot open files of this type."
:(
Your answer
![](https://koobas.hobune.stream/wayback/20220613084947im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mac Webplayer rendering bug 0 Answers
SIGABRT on OS X 0 Answers
Unity3 + Mac Mini 3,1 2 Answers
In-app purchase "Invalid product" on Mac Store build 0 Answers
How/Where/Can I download the FREE version of Unity For MAc 0 Answers