Vinay W Posted April 22, 2020 Share Posted April 22, 2020 (edited) Go Home, Alfred An Alfred workflow which enables you to use a keyboard shortcut to go to the homepage of a website you are on. Do you often get stuck deep inside the rabbit hole (of a website) and come out by either backspacing the URL a gazillion times to go to the home page or by clicking the website logo usually on the top left UGHH! make it a keyboard shortcut with this Alfred workflow! Install Download and open the workflow file using Alfred. Get the latest release from here : https://github.com/vinaywadhwa/Go-Home-Alfred/releases P.S.: You need to buy the Powerpack to use this workflow. Supported Browsers Safari Google Chrome Google Chrome Canary Opera Vivaldi Brave Browser Note Firefox not supported, for now, sorry! This is why. Please reach out if you need other Chrome/Safari based browsers supported. Edited April 24, 2020 by Vinay W updated description, prettier formatting deanishe and JJJJ 2 Link to comment
JJJJ Posted April 23, 2020 Share Posted April 23, 2020 Hello @Vinay W, I think it is useful but It doesn't work for me, I am on 10.15.4 Catalina and Alfred 4.0.9. You can find the debug output below. [18:05:44.281] Logging Started... [18:06:53.448] Logging Stopped. [18:07:06.138] Logging Started... [18:07:14.181] Go Home, Alfred[Hotkey] Processing complete [18:07:14.184] Go Home, Alfred[Hotkey] Passing output '' to Run Script [18:07:14.485] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/5D846426-16B8-4DB6-A297-81C52F673BEF:261:264: script error: Expected end of line but found property. (-2741) [18:07:14.488] Go Home, Alfred[Run Script] Processing complete [18:07:14.489] Go Home, Alfred[Run Script] Passing output '' to Run Script [18:07:14.560] Go Home, Alfred[Run Script] Processing complete [18:07:14.564] Go Home, Alfred[Run Script] Passing output 'https:// ' to Run Script [18:07:14.829] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/FECFC682-A50B-4127-96BA-DA0FF75FCED4:327:337: script error: A property can’t go after this identifier. (-2740) Link to comment
Vinay W Posted April 23, 2020 Author Share Posted April 23, 2020 Oops! sorry to hear that. Let's solve that. What version are you running? Also, which browser? v1.0.1 is the latest (as of now) - https://github.com/vinaywadhwa/Go-Home-Alfred/releases/download/1.0.1/Go.Home.Alfred.-.v1.0.1.alfredworkflow I noticed the Download link in the Github page was pointing to an older version, so it could be that you are running an older version (which had a similar bug) Link to comment
JJJJ Posted April 23, 2020 Share Posted April 23, 2020 47 minutes ago, Vinay W said: Oops! sorry to hear that. Let's solve that. What version are you running? Also, which browser? v1.0.1 is the latest (as of now) - https://github.com/vinaywadhwa/Go-Home-Alfred/releases/download/1.0.1/Go.Home.Alfred.-.v1.0.1.alfredworkflow I noticed the Download link in the Github page was pointing to an older version, so it could be that you are running an older version (which had a similar bug) Thank you for your interest, I run v1.0.1 on safari, but after you reply I also tried it on chrome but still get the same debug output as before. [20:06:04.890] Go Home, Alfred[Hotkey] Processing complete [20:06:04.893] Go Home, Alfred[Hotkey] Passing output '' to Run Script [20:06:05.130] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A4D09E7C-9C73-47EC-9D5B-3D7D2483C0C4:261:264: script error: Expected end of line but found property. (-2741) [20:06:05.135] Go Home, Alfred[Run Script] Processing complete [20:06:05.136] Go Home, Alfred[Run Script] Passing output '' to Run Script [20:06:05.205] Go Home, Alfred[Run Script] Processing complete [20:06:05.207] Go Home, Alfred[Run Script] Passing output 'https:// ' to Run Script [20:06:05.421] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/723F3EB5-EB57-4EA7-94E3-082C5D140D8E:327:337: script error: A property can’t go after this identifier. (-2740) Link to comment
Vinay W Posted April 23, 2020 Author Share Posted April 23, 2020 Sorry, I'm not sure what's wrong then. Here's a demo of me trying to do what you are (probably) doing - Download, install & run in all 3 browsers that the workflow supports - Safari, Google Chrome & Brave. See if you are doing the same thing? (i'll leave here as a demo for future users) Demo - https://imgur.com/oSbmaPK If it still doesn't work, it probably has something to do with the browser versions we are using (I'm on Catalina 10.15.3, Safari 13.0.5, Chrome 81.0.4044.122, Brave 1.5.123) Link to comment
deanishe Posted April 23, 2020 Share Posted April 23, 2020 @Vinay W: Could you put the source code in the GitHub repo, instead of the compiled .alfredworkflow file? It makes it a lot easier to look at the source code. Link to comment
Vinay W Posted April 24, 2020 Author Share Posted April 24, 2020 (edited) @JJJJ I re-wrote the whole thing in a way that works more reliably across different browsers (Technical details - using JXA instead of AppleScript now, as suggested here) Should work for you now. If you are still interested, give the latest version a try (v1.0.2, as of now) and let me know if it works. Thanks for letting me know about this. Also updated the original post @deanishe i will post the code on github soon. Getting the hang of how i should structure my workflows. This discussion helps. Thanks! Edited April 24, 2020 by Vinay W JJJJ 1 Link to comment
JJJJ Posted April 24, 2020 Share Posted April 24, 2020 1 minute ago, Vinay W said: @JJJJ I re-wrote the whole thing in a way that works more reliably across different browsers (Technical details - using JXA instead of AppleScript now, as suggested here) Should work for you now. If you are still interested, give the latest version a try (v1.0.2, as of now) and let me know if it works. Thanks for letting me know about this. Also updated the original post @deanishe i will post the code on github soon. Getting the hang of how i should structure my workflows. This discussion helps. Thanks! I was just replying to you that I do exactly the same thing as you do in the demo. But it still wasn't working. However you just updated your workflow to v1.0.2 and it works with no issues now. Thank you again for your interest. Vinay W 1 Link to comment
deanishe Posted April 24, 2020 Share Posted April 24, 2020 45 minutes ago, Vinay W said: Getting the hang of how i should structure my workflows. Generally, it's a good idea to put your code in "External Scripts", rather than in the Script box. The Script box is a terrible editor, and source control works better when everything isn't contained in info.plist. Vinay W 1 Link to comment
Bemawr Posted June 17, 2021 Share Posted June 17, 2021 I use this 5 to 9 times a day it's great! Any way you could add Microsoft Edge? I have been using Edge to replace Brave and would love to keep using this. Link to comment
Vinay W Posted June 18, 2021 Author Share Posted June 18, 2021 9 hours ago, Bemawr said: Any way you could add Microsoft Edge? I have been using Edge to replace Brave and would love to keep using this. Added support for Microsoft Edge - here you go 🙂 Link to comment
Bemawr Posted June 18, 2021 Share Posted June 18, 2021 11 hours ago, Vinay W said: Added support for Microsoft Edge - here you go 🙂 Wow in less than 16 hours. You ROCK! Vinay W 1 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