Jump to content

Sharing some useful simple Universal Action


Recommended Posts

Found the time to try out the new 4.5 release and I love it!

 

Other than a few mentionings in the Thread on the 4.5 beta, I haven't found many showcases of the new Universal Actions feature in this forum. Maybe we could share some usecases? Here is a workflow with a bunch of (mostly simple) Universal Actions:

 

Text Actions
- Titlecase
- Lowercase
- Uppercase
- Poor Text (removes formatting)
- Transform Spaces to Tabs
- Append to Clipboard (similar to Alfred's built-in function, but with manual hotkey and with universal action)
- Calculate the sum of all numbers in the selected text. Negative numbers are supported, as are both "," or "." as decimal separators. (Thousand separators are not supported though, as they would create ambiguous cases.)
- Run Brett Terpstra's SearchLink, which fetches the URL and creates a markdown link of the selected text.

 

URL Actions
- URL Encode
- URL Decode
- Create compact markdown link
- Create compact markdown link of all URLs in selecting (actually a Text Action...)
- SearchTitle: Fetch the title of the URL and create a Markdown link (basically the opposite of SearchLink)

 

Download: https://drive.google.com/file/d/16Fnkj8wXxxNYlLTcEO-m8YHOobADLZE9/view?usp=sharing

 

 

Link to comment
5 hours ago, Chris Messina said:

Love this!

 

I've been talking to the developer of TextBuddy to hook up his app to Universal Actions.. text modification scripts seems like an entire category that Alfred should embrace! 

Great! Also a mega supporter of TB, hopefully Tyler can hook up to Alfred.

Link to comment

@Andrew seeing some unexpected behavior here:

  1. I invoked my UA hotkey on an .mp4 and yet was able to access Case Converter UAs even though their type was set to only apply to Text.²
  2. Only three UAs from @dfay's Workflow show up, even though five should appear.¹
  3. All of the UA titles are the same, but I expect them to use the block's title (i.e. "Upper Case", "Lower Case", etc).

Am I missing something about how UAs work? 

 

¹1455516509_CleanShot2021-08-11at15_33.47@2x.thumb.png.f0b1aed48314e30c92b9d47c6ace25e7.png

² 

image.thumb.png.c804a5e981b33ab89e696b04ab11b535.png

Link to comment

@Chris Messina I think what's showing up are not the 5 different case change universal actions, but the placeholder title for the three keyword script filters ("cc", "change", "case") that you created in your edit of the workflow. I guess you're stuck with those unless script filters can exclude themselves as actions for specific file types (can they?)

Edited by paulw
Link to comment
5 hours ago, paulw said:

what's showing up are not the 5 different case change universal actions, but the placeholder title for the three keyword script filters ("cc", "change", "case") that you created in your edit of the workflow

 

🤦🏻‍♂️ of course! You're totally right — I forgot that Script Filters have placeholder titles... and yes — it would be helpful if: 

  • I could suppress Script Filters from appearing in Universal Actions or
  • Set synonyms for keywords (which I've requested before)
Link to comment
2 hours ago, Chris Messina said:

I could suppress Script Filters from appearing in Universal Actions or

 

This is in the works, much more granular control over what gets shown in universal actions, including per-workflow suppressing of keyword/script filter inclusion when universal action triggers have been implemented.

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