Jump to content
macosxguru

[SOLVED] Workflow to open a bunch of files in a particular application

Recommended Posts

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

Share this post


Link to post

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}

 

Share this post


Link to post

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

Screen Shot.png

Share this post


Link to post

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).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...