Jump to content

Highlighted text as Universal Action input that passes to a macos Shortcut


Recommended Posts

There is a macos Shortcut called "Sort Lines." If you highlight lines in any application and trigger the shortcut it will sort the lines in the chosen application. If I highlight the lines and trigger Universal Actions I can see the highlighted in the right panel. I can't figure out how to preserve that text when calling a shortcut though. When I call "Sort Lines" it then asks me for text.

Anyone know of any solutions?

Thanks

image.png.73a503f6a7e2ba6031f6488b4df0de82.png

Link to comment

Welcome @Gungazoo,

 

It’s impossible to say without looking at the shortcut in question, but you can recreate what you want easily with a workflow (which is likely to run faster, since shortcuts take a while to start).


Connect a Universal Action Trigger → Automation Task to Sort Lines → Copy to Clipboard Output (set to paste to frontmost app). You’re done.


See the Getting Started Guide for an interactive tutorial on making a workflow.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...