Jump to content

Universal Actions Contextual Menu


Recommended Posts

I just got into Universal Actions.

 

For me as a PopClip user the key advantage is Alfred's not caring HOW the selection got made.

 

There is one thing I like about PopClip and that is the rather compact context menu it has. Alfred doesn't have such a thing.

 

What I'd love to see is a context menu with a "More" button at the end of it. This context menu has a few (selected by the user) actions to invoke.

 

Thoughts?

Link to comment
Share on other sites

OK. Here is an example. I had to grab it using a phone - as the effect I wanted to show disappears on taking a screen shot.

So the idea of PopClip is you select text and up pops this nice little menu. I haven't customised it much on this machine but you can see the Yoink add on to the right.

What I'd love to see is something similar with Alfred - for select frequently-used actions. We'd need one marked "More" or similar, of course, to bring up the current dialog.

PopClip.png

Link to comment
Share on other sites

Can’t say I agree that would make sense for Alfred. It’s a whole different paradigm and PopClip’s whole point. By design Alfred runs when it’s called and is otherwise invisible; adding a whole new automatic context seems neither simple nor consistent. You request would (literally) entail rewriting PopClip itself into Alfred.

 

It would make more sense to have PopClip invoke Alfred Workflows, which you probably can do via AppleScript.

Link to comment
Share on other sites

  • 1 month later...

The PopClip action uses Applescript to do this:

 

tell application id "com.runningwithcrayons.Alfred" to search "{popclip text}"

 

Yes this is from the Alfred Popclip source, located here:

 

https://github.com/pilotmoon/PopClip-Extensions/tree/master/source/Alfred.popclipext

 

So is there a way to do something like this?

 

tell application id "com.runningwithcrayons.Alfred" to execute Universal Action on "{popclip text}"

 

That would pop up the Universal Actions UI instead of the search bar and make Alfred *really* useful. I looked in the AppleScript scripting dictionary but couldn't find anything obvious other than the search command.

Edited by leoofborg
adding sources
Link to comment
Share on other sites

2 hours ago, leoofborg said:

I looked in the AppleScript scripting dictionary but couldn't find anything obvious other than the search command.

 

You can't have looked too closely: what you're after is directly under the description of the search command.

 

tell application id "com.runningwithcrayons.Alfred" to  action "/some/path/or/text/here"

 

alfred-as-dict.png.fa90cbd04f7576c31b684b19f8a2adf1.png

Edited by deanishe
Link to comment
Share on other sites

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