macosxguru Posted February 18, 2019 Share Posted February 18, 2019 Is it possible to write a workflow which opens a list of files in a particular application? These are all text files but I don't them to be opened by the default application. I want them opened in a particular application which is not the default for the file--type. macosxguru Link to comment
dfay Posted February 18, 2019 Share Posted February 18, 2019 Yes. Is it a fixed list of files or will it change depending on the search term? Link to comment
macosxguru Posted February 18, 2019 Author Share Posted February 18, 2019 It is a fixed list of files. Thanks for helping. macosxguru Link to comment
dfay Posted February 18, 2019 Share Posted February 18, 2019 The easiest way will be to use the open command in a bash script e.g. to open in Preview open -a "Preview.app" {query} Link to comment
macosxguru Posted February 18, 2019 Author Share Posted February 18, 2019 I am sure your system works. What I did was to setup three open files with the files I wanted to open. The problem was that two of them are markdown files and the third is emacs config file. All three are setup to be opened by emacs. I assigned a hotkey to the three and when I invoke the hotkey. emacs opens with all three files in tabs. Thanks for your help. macosxguru Link to comment
dfay Posted February 18, 2019 Share Posted February 18, 2019 Yeah that works fine. Depending on how you work using open has some other flags that may make it helpful. Notably opening apps in the background or hidden (see and the man page). Link to comment
macosxguru Posted February 18, 2019 Author Share Posted February 18, 2019 Thanks dfay for all the help. macosxguru Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now