fruityth1ng Posted March 30, 2013 Share Posted March 30, 2013 (edited) The custom search didn't bring the nvALT window to the front, so I created this workflow that does. http://www.nimbling.com/Downloads/NvALT%20-%20Search.alfredworkflow Edited March 30, 2013 by fruityth1ng Link to comment
stevencombs Posted March 30, 2013 Share Posted March 30, 2013 Much better! Thanks for the update that improves on the original! I made an adjustment to require an argument, but that’s just to better fit my workflow. Simple solution to a problem that has bugged me. Link to comment
fruityth1ng Posted March 30, 2013 Author Share Posted March 30, 2013 Sweet! check out my food log one, too, that one links to yet *another* one that is similar, and puts the cursor at the end. That "other" one could use the cursor moving, by the way. I'll post it in that thread http://www.alfredforum.com/topic/1643-open-a-search-called-foodlog-in-nvalt-and-bring-window-to-front/ Link to comment
camfisk Posted July 18, 2013 Share Posted July 18, 2013 The Action of Open URL alone seems to work the same without the other components of this workflow. Simple is good. Link to comment
tsigo Posted November 3, 2013 Share Posted November 3, 2013 Has this broken for anyone else in Mavericks? nvALT opens but the window never displays. scottcbates 1 Link to comment
camfisk Posted November 5, 2013 Share Posted November 5, 2013 Has this broken for anyone else in Mavericks? nvALT opens but the window never displays. Yep, same issue here. scottcbates 1 Link to comment
scottcbates Posted November 14, 2013 Share Posted November 14, 2013 Me too! And it's surprising how often this trips me up. Has anybody figured out a solution (I've tried a bunch of things--basically at random--but haven't figured it out yet! Link to comment
tsigo Posted November 14, 2013 Share Posted November 14, 2013 (edited) I was able to successfully work around it by adding a third line to the AppleScript part of the workflow, so that it reads: on alfred_script(q) tell application "nvALT" reopen activate tell application "System Events" to keystroke "l" using command down end tell end alfred_script Edited November 14, 2013 by tsigo Link to comment
derekvan Posted January 10, 2014 Share Posted January 10, 2014 tsigo's fix is only partially working for me on Mavericks--is it still working for others? If nvAlt is not currently open, this workflow will open nvAlt, but not insert the search string. If nvAlt is currently open, the workflow works as expected: puts the search string in the omnibar of nvalt. Curious to hear if this is my problem, or if others are experiencing it as well. Link to comment
camfisk Posted January 10, 2014 Share Posted January 10, 2014 tsigo's fix is only partially working for me on Mavericks--is it still working for others? If nvAlt is not currently open, this workflow will open nvAlt, but not insert the search string. If nvAlt is currently open, the workflow works as expected: puts the search string in the omnibar of nvalt. Curious to hear if this is my problem, or if others are experiencing it as well. Same issue here. Link to comment
vladstudio Posted January 22, 2014 Share Posted January 22, 2014 Here is what I came up with - it brings nvAlt to front, focuses on input, and enters search query. on alfred_script(q) tell application "nvALT" reopen activate tell application "System Events" to keystroke "l" using command down tell application "System Events" to keystroke q end tell end alfred_script derekvan 1 Link to comment
javatseng Posted January 24, 2014 Share Posted January 24, 2014 It works perfect for me. Thanks. Here is what I came up with - it brings nvAlt to front, focuses on input, and enters search query. on alfred_script(q) tell application "nvALT" reopen activate tell application "System Events" to keystroke "l" using command down tell application "System Events" to keystroke q end tell end alfred_script Link to comment
derekvan Posted January 28, 2014 Share Posted January 28, 2014 Works great for me too! Thanks for sharing. 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