raguay.customct Posted September 5, 2014 Posted September 5, 2014 (edited) Alfred URI Handler GitHub: https://github.com/raguay/MyAlfred/blob/master/AlfredURIHandler.alfredworkflow Packel: http://www.packal.org/workflow/alfred-uri-handler This workflow has one command "au:install". Once you run it, a URI handler for Alfred will be installed. This is used to trigger external triggers in any workflow. The format is: alfreduri://com.apple.AppleScript.AlfredURIhandler?wf=<workflow Bundle ID>&arg=<arguments>&ext=<external trigger name> The arguments should be URI encoded (ie: no spaces, but %20 instead). If you update the workflow, you have to re-apply the handler. Also, do not delete the workflow or the functionality will be removed. I use it to make action links in FoldingText to trigger actions in Alfred. There is also a "search=<search args>" to open the Alfred prompt with a query. It now works. If you already downloaded and installed the handler, please do it again. Version: 1.1 Date: 9/6/2014 Edited September 6, 2014 by raguay.customct Florian 1
smarg19 Posted September 5, 2014 Posted September 5, 2014 This is a very interesting idea. I will need to think on this for a bit.
raguay.customct Posted September 6, 2014 Author Posted September 6, 2014 I use this for making a site map of my flat file website. It is create for opening directories and files in it. The script creates likes like: [posts/news/customct/](alfreduri://com.apple.AppleScript.AlfredURIhandler?wf=com.customct.FoldingText&ext=viewDir&arg=/Users/raguay/Dropbox%20(Personal)/Richard/rag/go/goPress/site/posts/news/customct) Which will open the Custom Computer Tools News directory in PathFinder for me. The site layout program is a ruby script I recently added to my FoldingText Workflow. Once created and open in FoldingText, just clicking the link opens the directory or file I need. Very handy. I can see other areas to make use of this feature. But, it currently can not be used to start an Alfred session. The Alfred prompt closes too quickly to be useful. If anyone nows a fix for that, please let me know. I am not that good at AppleScript.
raguay.customct Posted September 6, 2014 Author Posted September 6, 2014 I was able to fix the issue with a simple delay. The easy things are often the hardest. Please try it out and let me know if you have any issues. Thanks!
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