robwalton Posted March 5, 2017 Share Posted March 5, 2017 I've started writing a macOS URL handler to trigger Alfred workflows via external trigger blocks. When I went to register it I noticed there is already an 'alfred' url handler registered: alfred://what_goes_here I can't find any documentation about it though. The closest I found was here: https://www.alfredforum.com/topic/7285-x-callback-url-for-alfred-remote, but I didn't see the indicated schemes registered (or any info on what to do with them). So... Is the alfred:// url handler supported? Thanks, Rob Link to comment
deanishe Posted March 5, 2017 Share Posted March 5, 2017 The alfred:// URL is for exporting/importing custom Web Searches. If you open this URL, for example, Alfred will offer to import my TheTVDB.com search: alfred://customsearch/Search%20TheTVDB.com%20for%20%27%7Bquery%7D%27/tv/utf8/nospace/http%3A%2F%2Fthetvdb.com%2F%3Fstring%3D%7Bquery%7D%26searchseriesid%3D%26tab%3Dlistseries%26function%3DSearch In Alfred 2, it was also the default way to share themes, but Alfred 3 exports files. This is my "Essen by Night" theme, and should still import in Alfred 3: alfred://theme/searchForegroundColor=rgba(211,211,211,0.73)&resultSubtextFontSize=1&searchSelectionForegroundColor=rgba(0,0,0,1.00)&separatorColor=rgba(8,7,7,0.91)&resultSelectedBackgroundColor=rgba(55,52,53,1.00)&shortcutColor=rgba(72,240,62,0.29)&scrollbarColor=rgba(55,52,53,1.00)&imageStyle=4&resultSubtextFont=Helvetica&background=rgba(8,7,7,0.91)&shortcutFontSize=2&searchFontSize=2&resultSubtextColor=rgba(88,83,88,1.00)&searchBackgroundColor=rgba(8,7,7,0.91)&name=Essen%20by%20Night&resultTextFontSize=2&resultSelectedSubtextColor=rgba(212,119,0,0.42)&shortcutSelectedColor=rgba(212,119,0,0.64)&widthSize=2&border=rgba(9,54,66,0.00)&resultTextFont=Helvetica%20Neue&resultTextColor=rgba(206,205,207,0.46)&cornerRoundness=3&searchFont=Helvetica&searchPaddingSize=3&credits=Dean%20Jackson&searchSelectionBackgroundColor=rgba(178,215,255,1.00)&resultSelectedTextColor=rgba(212,119,0,0.71)&resultPaddingSize=2&shortcutFont=Helvetica Alan He 1 Link to comment
robwalton Posted March 5, 2017 Author Share Posted March 5, 2017 Thanks for the quick reply and the info. The first sounds like a pretty useful trick. --Rob Link to comment
robwalton Posted March 5, 2017 Author Share Posted March 5, 2017 P.S. @deanishe your workflow http://www.packal.org/workflow/stackoverflow-search is awesome. Link to comment
Alan He Posted June 2, 2022 Share Posted June 2, 2022 On 3/6/2017 at 3:24 AM, deanishe said: The alfred:// URL is for exporting/importing custom Web Searches. If you open this URL, for example, Alfred will offer to import my TheTVDB.com search: alfred://customsearch/Search%20TheTVDB.com%20for%20%27%7Bquery%7D%27/tv/utf8/nospace/http%3A%2F%2Fthetvdb.com%2F%3Fstring%3D%7Bquery%7D%26searchseriesid%3D%26tab%3Dlistseries%26function%3DSearch In Alfred 2, it was also the default way to share themes, but Alfred 3 exports files. This is my "Essen by Night" theme, and should still import in Alfred 3: alfred://theme/searchForegroundColor=rgba(211,211,211,0.73)&resultSubtextFontSize=1&searchSelectionForegroundColor=rgba(0,0,0,1.00)&separatorColor=rgba(8,7,7,0.91)&resultSelectedBackgroundColor=rgba(55,52,53,1.00)&shortcutColor=rgba(72,240,62,0.29)&scrollbarColor=rgba(55,52,53,1.00)&imageStyle=4&resultSubtextFont=Helvetica&background=rgba(8,7,7,0.91)&shortcutFontSize=2&searchFontSize=2&resultSubtextColor=rgba(88,83,88,1.00)&searchBackgroundColor=rgba(8,7,7,0.91)&name=Essen%20by%20Night&resultTextFontSize=2&resultSelectedSubtextColor=rgba(212,119,0,0.42)&shortcutSelectedColor=rgba(212,119,0,0.64)&widthSize=2&border=rgba(9,54,66,0.00)&resultTextFont=Helvetica%20Neue&resultTextColor=rgba(206,205,207,0.46)&cornerRoundness=3&searchFont=Helvetica&searchPaddingSize=3&credits=Dean%20Jackson&searchSelectionBackgroundColor=rgba(178,215,255,1.00)&resultSelectedTextColor=rgba(212,119,0,0.71)&resultPaddingSize=2&shortcutFont=Helvetica Any official doc about url scheme support? And Are there other support action? 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