Skip to content

Automator commands that allow you to open files or folders in the application from the finder

Notifications You must be signed in to change notification settings

user1man/OpenWithAutomator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWithAutomator

Readme in other languages:

RU 🇷🇺

This repository contains Automator scripts to help you open files or folders in the application you need without running the application. Simply use the serives in the Finder file menu.

An example of what the script does

VS Code:

To open your files or programs in VS Code (Microsoft Visual Studio Code):

You don't need to take any additional actions to use the script.

Fork

Fork is a simple and easy-to-use GUI for Git. To enable script support, go to Fork settings. Install Fork CLI in the Integration tab of settings at the bottom of the page.

Fork settings UI. Integration tab

Download, unpack and run the script.

Uninstall and editing

All sevices are installed in the following path:

/Users/YOUR_USER/Library/Services

Open the script if you need to change it

How it works

When a service is started, a path is passed to the Shell script in automaton, based on which any application is called Since multiple paths can be passed to a command, a For loop is used.

for f in "$@"
do
some your command here $f
done

To use the value of f, use $f where you need it.

Create your own script

  • Open Automator
  • File -> New -> Service
  • Change «Service Receives» to «files or folders» in «Finder»
  • Add a «Run Shell Script» action
  • Change «Pass input» to «as arguments»
  • Paste in the shell script box your code
  • Save it with your script name

Thanks to the tonysneed for the guide

About

Automator commands that allow you to open files or folders in the application from the finder

Topics

Resources

Stars

Watchers

Forks