This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'd like to set up NetBeans as a default application for opening files on Mac OS X: 1. Install NetBeans 2. In Finder, find a .php file 3. Right-click it and choose Open With -> Other... 4. Browse to the location of NetBeans (for me it is under Applications -> NetBeans -> NetBeans 6.1.app) => NetBeans 6.1.app can not be selected, so I can not use it for opening .php files (or any other files). I am using NetBeans 6.1 on Mac OS X 10.4 "Tiger".
Petr, why do you think that it is the installer issue? Dmitry
Hi Dmitry, I am not sure this is an installer issue, feel free to reassign. Where do you think it should belong?
I guess, it does not work for the same reason as on windows with "Open With" menu item - bin/netbeans.exe (bin/ netbeans) requires addtional argument to open the file: - this works: bin/netbeans --open file.php - this does not: bin/netbeans file.php Maybe it can be solved by tweaking .app description, maybe not, need to check.
Something to start with... http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/DocTypePList.html Making the issue the enhancement. In fact, it is.
> - this works: bin/netbeans --open file.php > - this does not: bin/netbeans file.php I filed a separate issue 138943 for this. Could this be a NB Core issue?
> - this works: bin/netbeans --open file.php > - this does not: bin/netbeans file.php BTW, both versions works fine for me with a java file... anyway, if "bin/netbeans file.php" does not work for you then it is certainly NetBeans core issue, not the installer one.
Assigned to new owner.
Another request for this feature: http://superuser.com/questions/550228/how-to-set-netbeans-7-2-as-my-default-php-files-ide-on-ubuntu-12-10
Possible workaround (may cause some other more serious problems): In Finder show context menu on NetBeans App and click on Show Package Contents. In Contents/Info.plist change: When opening with XCode: "Executable File" property (in XCode) form "netbeans" to "bin/netbeans" When opening with some text editor: <key>CFBundleExecutable</key> <string>netbeans</string> change to <key>CFBundleExecutable</key> <string>bin/netbeans</string> Now you should be able to open files from finder with NetBeans.