Damn! On my MacOS ViewSourceWith opens multiple application instance
Since version 0.0.8.2 it is possibile to pass command line arguments to editors.
Under MacOSX this feature required radical changes on code due to a bug present on all Mozilla applications.
Many users suggest solutions and workarounds and here you find them.
Use the open application distributed with MacOSX
Stefan Nowak says: "Simply use '/usr/bin/open' available in all OSX versions (as far as I know and as far as the manpage says)."
To succesfully view your firefox source code in other apps, set this in VSW:
editor path: /usr/bin/open
parameters: -a /path/to/your.app $f
IMPORTANT: the path must end in .app, as open only works correctly if you refer to the .app, but fails if you call any binaries within the .app bundle directly. direct binary targeting es especially inflexible if you have FAT binaries (intel and ppc), therefore targeting .app is highly recommended. target .app and let the system decide which binary to start.
Using TextWrangler and Dreamweaver
Tim Wood shows us how to use 'open' to succefully use ViewSourceWith with TextWrangler and Dreamweaver
TextWrangler:
Editor Path: "/usr/bin/open"
Parameters: " -a /path/to/TextWrangler.app $f"
DreamWeaver:
Editor Path: "/usr/bin/open"
Parameters: " -a /path/to/Dreamweaver\ 8 $f"
I'm not sure why DreamWeaver doesn't require the .app at the end of the application name. It must be a Macromedia thing ;-)
It's worth noting that this approach will solve the opening multiple copies of an app problem.
Using other free utility
This solution was suggested to me by Leigh.
You can use launch application that allows to run app bundles from command line.
For example to have only one TextEdit instance you can:
Specify
/usr/bin/launchin the "Editor Path" field, and
/Applications/TextEdit.app $fin the "Parameters" field
TextMate users can specify as editor
/Applications/TextMate.app/Contents/Resources/mateYou can find more details here