Open a new ‘Finder’ Instance, right-click on a folder, go to ‘Quick Actions’ > ‘Customize.’.Be sure to set a cool name for your new Shortcut! I named mine a boring “Open in VSCode”.Set ‘Pass Input:’ option to ‘as arguments’.A pop must appear, choose ‘File Path’ and just click anywhere else. Click on the ‘Shortcut Input’ tag that appears.In the newly added action called ‘Run Shell Script’ write “code “ and right-click to get the below pop-up, go ahead ‘Insert variable’ and then ‘Shortcut Input’.In the shortcut details (on the right pane), make sure Use as Quick Action is ticked and so are ‘Finder’ and ‘Service Menu’.This will add the action to the Shortcut’s flow. Drag and drop the ‘Run Shell Script’ onto the main pane. Click on ‘Action Library’ on the right pane and search for ‘shell’.Click on ‘Any’ and change to ‘Files and Folders’ by selecting only those from the dropdown that appears on clicking the ‘Any’ field.On the top bar, press the ➕ button to add New Shortcut.On the Left Pane, navigate to ‘Quick Actions’. If you are looking for screenshots as well, I wrote a small Notion page You may now right-click on the folder and find your newly created task under Quick Actions.įound a way to achieve a 'Quick Action' that met my needs using the following steps using MacOS' Shortcuts app (No Automator needed): Save the action using a name like Open in Visual Studio Code. (drag the "Run Shell Script" object, highlighted in the screenshot, to the empty window on the right)
0 Comments
Leave a Reply. |