[MacPorts] #60646: app portgroup -- accept drag-and-dropped files from the Finder

MacPorts noreply at macports.org
Sat Jun 13 19:35:02 UTC 2020


#60646: app portgroup -- accept drag-and-dropped files from the Finder
--------------------------+--------------------
  Reporter:  kencu        |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by kencu):

 It may not be possible, but I think that with the proper entry in the
 Info.plist, if you drag and drop a file onto the app icon, it would be
 passed on to the shell script as an argument. Then, after screening out
 the {{{-psn}}} if needed, you would do something like this:
 {{{
 exec /opt/local/bin/gedit "${@}"
 }}}

 and {{{gedit}}} would open the file. Hopefully.

 In an ideal world, {{{gedit}}} might come up as an option for opening the
 file when you right-or-control click on it too.

 Gedit is pretty excellent -- in fact, remarkable excellent. I currently
 use bbedit mostly, but my current version won't work on Catalina as it's
 apparently somehow still i386.

-- 
Ticket URL: <https://trac.macports.org/ticket/60646#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list