I have Emacs installed with brew install emacs-mac --HEAD --with-cocoa --with-gnutls --with-librsvg --with-imagemagick. I have the final .app binary in the OS X Dock.
If I drag a file onto the Dock icon, the default behavior opens it in the last-activated frame, even if it is on a different desktop. I'd like files to open in a new frame in the current desktop when drag-and-dropped onto the icon. Is this behavior possible? Yes, because this is emacs. Can anyone suggest a place to begin implementing this?
ns-find-fileso that files opened from the Finder.app get displayed in certain select frames (using a custom function and let-binding thedisplay-buffer-alist). Why not try adding a message tons-find-fileand drop your file on the Dock and see if the message gets displayed? If it does, then "Bingo!". If not, then "Go Fish!". Here is a link to a modified version ofns-find-file: stackoverflow.com/questions/18346785/…