Jump to content
iandol

"Selection in macOS" as a Workflow Action?

Recommended Posts

I often want to get a selection from the current app to pass as argv to a script. Using the [hotkey] trigger this is trivial, but I normally want to be able to use both a [hotkey] and/or a [keyword]. Now the issue is [keyword] as an input does not support passing a "Selection in macOS" argument. The way I currently handle this is [keyword] triggers a script action Applescript to copy the selection (system events) to the clipboard then have two scripts, one that handles stdin via [hotkey] and one that uses the clipboard from [keyword]. But this seems a bit fussy (and fills up the clipboard in one but not the other trigger). I also sometimes use [hotkey] to also trigger an applescript>clipboard then have a unified script but we still are using the clipboard when we don't really have to. If we had a new dedicated [action] which simply passed the current selection to the next block it would elegantly solve this (my [keyword] would then trigger this new [action] to pass into a single argv script).

 

I know this is fairly minor and there are workarounds and perhaps I'm missing a better way to do all this, but if not please consider adding this action, thank you! 

Edited by iandol

Share this post


Link to post
Share on other sites

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