wwwjfy Posted January 13, 2013 Share Posted January 13, 2013 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.. Soumya 1 Link to comment
Vero Posted January 13, 2013 Share Posted January 13, 2013 Have a look at this workflow which allows you to look up selected text by pressing a hotkey (which you'll need to set) and opens the word in Dictionary.app Look up selected word workflow Link to comment
wwwjfy Posted January 14, 2013 Author Share Posted January 14, 2013 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? Link to comment
wwwjfy Posted January 14, 2013 Author Share Posted January 14, 2013 To be clear, I mean using a hotkey to open Alfred with "define" in the search box, e.g. Link to comment
CarlosNZ Posted January 15, 2013 Share Posted January 15, 2013 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? Link to comment
wwwjfy Posted January 15, 2013 Author Share Posted January 15, 2013 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. Link to comment
mjmsmith Posted January 25, 2013 Share Posted January 25, 2013 I'm working around this for now with a Keyboard Maestro macro, but I hope it comes back. It was the only thing that I missed right away. Link to comment
MrClaye Posted January 25, 2013 Share Posted January 25, 2013 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. Link to comment
wwwjfy Posted January 26, 2013 Author Share Posted January 26, 2013 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 Link to comment
MrClaye Posted January 26, 2013 Share Posted January 26, 2013 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 Btw, indeed, It's a bug, I've the same issue here Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now