[wingide-users] double-clicking on mac to open file
support at wingware.com
Mon Mar 5 10:07:48 MST 2012
Geoffrey S. Knauth wrote:
> Sometimes, on a Mac, I have a Python file
> I might be in Emacs looking at that file, and I wish I could open it with: open -a wingide
> Or, alternately, I wish I could double-click on the file and have it open in Wing IDE. In Emacs dired mode, I have a silly function od that opens the current directory in the Mac Finder, which is how I'd get to something deeply nested quickly in order to double-click on it.
> (defun od ()
> "Open current directory (Mac)"
> (shell-command "open ."))
> I find that if I use any of these techniques, or the command-line scripts I found in:
> WingIDE will start up, but the file I want to look at hasn't been opened, requiring me to go digging for it. I was wondering if someone has found an elegant way of doing this.
> The only other thing I can think of is copying the value of (buffer-file-name) in Emacs to the pasteboard so that (hopefully) WingIDE can pick it up in an open-file dialog as a paste.
If you pass the file name to
/Applications/WingIDE.app/Contents/MacOS/wing it should be opened. You
can also pass --reuse or --new to force reusing an existing instance of
Wing or opening a new one. Is that not working?
Also, these may be of interest: http://wiki.wingware.com/OSXHelpers
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users