Hi, I feel rather silly posting this question, but the answer has completely eluded me.
I am using macOS Monterey on my M1 Max Mac Studio. I am trying to create a "launcher" for the vi text editor, so that I can put the launcher's icon in the Dock and then drop files that I want to edit in vi onto that icon. My question is not restricted to just vi; I would like to create drag n drop "launchers" for many different interactive command line apps, such as vi, nano, mc and so on.
This SHOULD be easy; this is what the Automator app is for... AppleScript too. I have read and read and read on Google and tried every combination of things I can think of but nothing works for me. I can create an Automator launcher app that will launch vi, but I cannot get vi to "see" the files that are dropped onto the launcher app. Ditto for AppleScript - I can successfully launch command line apps, but I cannot get those apps to "see" the files that are dragged onto the launcher.
There are LOTS of prescriptions for doing this sort of thing on the web, but NONE of them have worked for me, at least so far.
Does anyone have a known working way of creating a launcher for command line apps that will accept drag and drop files and pass them on to the launched application?
Thanks!
I am using macOS Monterey on my M1 Max Mac Studio. I am trying to create a "launcher" for the vi text editor, so that I can put the launcher's icon in the Dock and then drop files that I want to edit in vi onto that icon. My question is not restricted to just vi; I would like to create drag n drop "launchers" for many different interactive command line apps, such as vi, nano, mc and so on.
This SHOULD be easy; this is what the Automator app is for... AppleScript too. I have read and read and read on Google and tried every combination of things I can think of but nothing works for me. I can create an Automator launcher app that will launch vi, but I cannot get vi to "see" the files that are dropped onto the launcher app. Ditto for AppleScript - I can successfully launch command line apps, but I cannot get those apps to "see" the files that are dragged onto the launcher.
There are LOTS of prescriptions for doing this sort of thing on the web, but NONE of them have worked for me, at least so far.
Does anyone have a known working way of creating a launcher for command line apps that will accept drag and drop files and pass them on to the launched application?
Thanks!