Jump to content
wwwjfy

What's the equivalent operation in v2 of "Selected Text" in Hotkeys tab in v1

Recommended Posts

Hi,

 

I'm using this one to look up the selected text in dictionaries, or if nothing selected, with prefix keyword "define" added in the search bar.

 

I moved everything in v1 to v2 except this..

Share this post


Link to post

Thanks for your example.

 

Well, I'd rather open Alfred search window instead of the Dictionary app most of the time, because I can see explanation right there, instead of scroll in another window.

 

Does it mean that this function won't be implemented in v2: use a hotkey to open Alfred with some word(s) pre-filled?

Share this post


Link to post

What you're saying is, is the only way to act on selected text via hotkey? I'm wondering this too. Surely you should be able to populate the Alfred window with selected text somehow?

Share this post


Link to post

well, I guess hotkey is enough, but even that is not supported.

 

I want to have the Alfred search bar with anything predefined, like "define" or "open", with selected text optionally, just like v1 does.

 

Yes, I want to populate the Alfred window with customized scheme, including selected text

 

Hmm, maybe this should go to feature request.

Share this post


Link to post

I was looking for exactly the same thing yesterday and apparently it's not possible yet.

However since the lastest build you can pop Alfred with a predefined word by using an Applescript :

 

on alfred_script(q)
tell application "Alfred 2" to search "translate "
end alfred_script

 

 

But there's no effect if you choose an hotkey with "Selected text in OSX"; in this case only "translate " will be written.

Share this post


Link to post
I was looking for exactly the same thing yesterday and apparently it's not possible yet.

However since the lastest build you can pop Alfred with a predefined word by using an Applescript :

 

 

 

But there's no effect if you choose an hotkey with "Selected text in OSX"; in this case only "translate " will be written.

 

Yeah, this is great.

To get the selected text, change your script to

 

 

 

on alfred_script(q)

tell application "Alfred 2" to search "translate " & q

end alfred_script

 

Notice: if "Show latest history if within 5 minutes" is checked, you need to clear that first, otherwise the last command will show. I think it's a bug, I'll go report it

Share this post


Link to post
Yeah, this is great.

To get the selected text, change your script to

Notice: if "Show latest history if within 5 minutes" is checked, you need to clear that first, otherwise the last command will show. I think it's a bug, I'll go report it

 

Oh yeah thanks that's great ! I'm a beginner in scripting :P

Btw, indeed, It's a bug, I've the same issue here

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