Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dfay

  1. Cool...let me take a look at the repo over the weekend.
  2. Edited 2014-06-07 to correct issues highlighted by deanishe below If you are willing to add a separator to separate the stuff at the top from each note, you can use this python script. In the "Run Script" element of the workflow, language should be set to python and Double Quotes should be escaped. (edited 2014-06-06 to remove extraneous line from testing). The script will write to an existing file, or, if the specified file doesn't exist, it will create a new file, based on a predefined template. The template is stored in two parts, a heading (theTemplate - see below), which can be
  3. Stephen - do you have a github repo for this? I have a bunch of related workflows, most of which depend on having that Applescript URL handler you wrote installed (and then having the top 3 notes generated on the current PDF so that the page # conversion will work). I have been lazy to post them here and wasn't sure about it since they are largely adaptations of your underlying hard work. Here is what they do - let me know & I can get them to you somehow - if you want to incorporate them it seems it might make more sense to consolidate them in a single workflow. Generate Top 3 Notes
  4. "has anyone figured out how to get the workflow to append to the top of the target note rather than the bottom?" Many options here: http://superuser.com/questions/246837/how-do-i-add-text-to-the-beginning-of-a-file-in-bash
  5. Updated to filter based on query. I am leaving assigned and unassigned in the output -- this can be easily changed by editing list_hotkeys.py in the workflow directory & changing the line: results = start+end to # defined hotkeys only results = start or # undefined hotkeys only results = end
  6. Updated with keyword to list all installed hotkeys.
  7. Updated to add a version set up for use with hotkeys.
  8. Yeah, it's reading your .plist correctly but it seems there's no 'categories' key in your plist. This probably means you haven't created any. I just posted an updated version which should handle this situation and just default to All.
  9. Try the new version I just posted as well -- it should avoid the error message in any case.
  10. This is odd, b/c it means the script has successfully read your prefs in ~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist (which aren't synced) and found the syncfolder key therein. And the path that is created looks correct. Looking in the ....Alfred.alfredpreferences/preferences/workflows/prefs.plist file, the only thing that is in there is the list of categories. Two questions for you: - are you running Alfred 2.2 or later? This is the version that introduced categories, and the file may not exist in prior versions. - have you placed any workflows into ca
  11. Workflow Picker Newly updated to work with Alfred 3 Select from Installed Workflows I have more workflows and associated keywords and script filters than I can remember. Rather than going into Alfred’s Preferences, I wanted a quick way to see the keywords & script filters available in the workflows I have installed, (optionally) grouped by the categories that have been available since Alfred 2.2. Inspired by Shawn Rice’s Workflow Help workflow and deanishe’s Appscript workflow, I put this together.
  12. This is excellent. I also figured out that it will resolve aliases, as long as the alias is renamed e.g. from myscript.applescript alias to myscript.applescript which is great, since I have a lot of scripting project that I keep in their own directories (which I sync from one machine to another) rather than in the Library (which I don't sync).
  13. This is great, but I have at least one app that stores its scripts in ~/Library/Application Support/appname/Scripts Would it easily be possible to have the workflow search here as well>?
  14. If you use TaskPaper, you may want to substitute the Applescript in this workflow with the one here: http://www.hogbaysoftware.com/wiki/ParseClipboardInFantastical , which converts a TaskPaper @due(YYYY-MM-DD) tag to the text due YYYY-MM-DD which Fantastical will parse as a Reminder. Updated 2015-03-25: Change Fantastical to Fantastical 2 & it works perfectly with F2.
  15. Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion. On accented characters, see my post of 7/1/2013. Cheers Derick
  16. +1 for fncll's request for volume conversions. The code is pretty clear so I may try to add this myself -- perhaps the original dev. could put it on github?
  17. Yep. Tried it on my laptop that I haven't used in 10 days or so and it worked perfectly. Let me see if it works on the desktop tomorrow - maybe Alfred cached the old version or something. [edited] 9 hours later & it works on my home desktop after a (unrelated) reboot.
  18. Thanks for following up. I checked the plist and it does have some devices without the Tabs key. I tried the new version and had the same result - Alfred reverts back to a regular search for "tabs". But if I run the new script from Terminal, it runs without an error & produces what looks to me like properly-formed XML output. And the output validates when pasted here: http://www.w3schools.com/xml/xml_validator.asp . I'm not sure what would cause Alfred to stop the script when it runs fine in Terminal. Any thoughts?
  19. This immediately reverts to a regular Alfred search for "tabs" for me. When I copied the script into a file and ran it in terminal it throws up the following error: Traceback (most recent call last): File "./tabs.py", line 44, in <module> devicetabs.append([x['value']['DeviceName'], x['value']['Tabs']]) KeyError: 'Tabs' I have three devices with iCloud tabs visible from Safari & can open them from Safari without problems.
  20. This is a great workflow. I'm wondering if it could be easily edited to show only reminders coming up in a given period. e.g. r month - reminders in the next month & overdue r week - reminders in the next week & overdue r soon - reminders in next __ user defined period I have a lot of reminders set up for recurring tasks that happen every 3-6 months, or once a year, and would like an easy way to suppress them.
  21. I've looked quickly at some options using Perl and Python (as well as bash tr , the existing approach) & none of them have worked for me....I'm not an expert in either though. http://ubuntuforums.org/showthread.php?t=1054470 http://bioinfo2.ugr.es/documentation/Perl_Cookbook/ch01_10.htm Both of these work for unaccented characters, but not for accented. If you can find a script that works, hooking it into the workflow should be trivial.
  22. This can all be done with workflows, like this one: http://www.alfredforum.com/topic/2180-case-converter-including-title-case/
  23. This is an extremely useful feature that I've somehow missed for months! Thanks.
  24. Yep, that fixed it! Thanks a bunch. It was only when it broke that I realized how much this has become an essential part of my research and reading.
  25. Hmmm....this was working great until this morning...now every search is resulting in an error - but the error message includes a doi URL that works fine when copied and pasted. I'm wondering if there was a change in the doi API that broke the workflow? Here's an example of what's returned if I use the "copy formatted reference" command: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>DOI Naming Authority [http:] Not Found</title> </head> <body bgcolor="#ffffff"> <table border="0" width="680" cellspa
  • Create New...