Jump to content

dfay

Member
  • Content Count

    907
  • Joined

  • Last visited

  • Days Won

    50

Everything posted by dfay

  1. Funny I was thinking of writing something like this myself a few days ago, but decided against it b/c I didn't think Alfred was the right vehicle given the need to enter recipients, subject and message. But - if you want to try to use this script - those directions leave out a critical step. After you copy the quickmessage.py file in place, you need to change the file permissions to make it executable. In Terminal cd into that directory then use the command chmod 755 quickmessage.py (brief discussion of permissions here: https://www.linode.com/docs/tools-reference/modify-file-permissions
  2. How would this differ from using command-tab? Unless I am misunderstanding something, I'd use command-tab - it's faster - a single key rather than a command and arrow keys.
  3. Is there any reason to use this rather than Alfred's built-in eject command?
  4. Nice. I've made a couple modifications you might consider: I added one line to the DATE_MAPPINGS array in date_format_mappings.py - very clear code that was easy to customize: 'yyyy-mm-dd':{'name': 'long inverted US date (-)','date-format':'%Y-%m-%d','regex':'\d{4}-\d{2}-\d{2}'}, I added an additional Applescript output from the dcalc script filter with a shift modifier to open Fantastical to the calculated date, with the following very simple script: on alfred_script(q) tell application "Fantastical" parse sentence (q) end tell end alfred_script This makes fo
  5. Workflowified: http://www.alfredforum.com/topic/4570-rpn-calculator/#entry27815
  6. A simple RPN calculator that works like the built-in calculator. Requires spaces as delimiters between elements in the expression. Built using deanishe's Alfred python library. e.g. 19 2.14 + 4.5 2 4.3 / - * produces an Alfred result: 85.2974418605 Action this item to copy this number to the clipboard There is a single keyword: rpn Download link: https://www.dropbox.com/s/9ay1z2mubifcun6/RPN Calculator.alfredworkflow?dl=0 2018-07-10: updated with working link 2020-07-26 upda
  7. I'd love to see the source of this. The workflow just has an executable. Am curious as to how you extended the built-in calculator.
  8. I wrote this: http://www.alfredforum.com/topic/1782-save-current-keynote-document-as-pdf/ for Keynote. The issues are that print dialogs vary from app to app and are generally not visible in Applescript, requiring a whole lot of UI scripting (i.e. simulating the clicks and selections that the user would do with a mouse). Keynote 6 introduced new dialogs that broke my script, another unfortunate by-product of needing to rely on UI scripting to do this. I doubt that it would be possible to do this in a generic form, but it is possible for a particular app if you have a lot of patience and
  9. @deanishe thanks for your help sorting out my code one Q - if I run the workflow with query $100 for food with the Dollars box unselected, it works properly, i.e. the item added to notes.txt matches the query. If I select the Dollars box, it appears in the notes file as \$100 for food.
  10. I've updated the post with my script to include some more explanation of what it does and how to customize it.
  11. Cool...let me take a look at the repo over the weekend.
  12. 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
  13. 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
  14. "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
  15. 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
  16. Updated with keyword to list all installed hotkeys.
  17. Updated to add a version set up for use with hotkeys.
  18. 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.
  19. Try the new version I just posted as well -- it should avoid the error message in any case.
  20. 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
  21. 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.
  22. I am getting the error intermittently still...some files with spaces work perfectly, others give the "Finder got an error: Handler can\U2019t handle objects of this class." message. I'm puzzled. I'll see if I can figure out what is making the difference. Thanks for all your work on this.
  23. Also....if I uncomment the display dialog on line 5, cmd+return displays the correct file but the spaces are escaped with %20. in Applescript Editor, this works: set f to "Dragonfly:Users:somebody:Documents:unruh 2014 evidencing the resti.pdf" tell application "Finder" to reveal f but this set f to "Dragonfly:Users:somebody:Documents:unruh%202014%20evidencing%20the%20resti.pdf" tell application "Finder" to reveal f gives the same error message.
  24. Thanks - I have the latest pre-release. Here's what I see - [return] to open in Bibdesk works fine, but the debugger displays a message: [ERROR: alfred.workflow.input.scriptfilter] Code 1: Exited with error code but no message - [cmd]+[return] to reveal attached pdf in finder doesn't work, debugger says [ERROR: alfred.workflow.action.applescript] { NSAppleScriptErrorAppName = Finder; NSAppleScriptErrorBriefMessage = "Handler can\U2019t handle objects of this class."; NSAppleScriptErrorMessage = "Finder got an error: Handler can\U2019t handle object
  25. Hmm...I installed this and now Alfred displays the message Incompatible Workflow This workflow was created with a newer version of Alfred Please upgrade Alfred to the latest version (or pre-release) to use this workflow I am running Alfred 2.2 b243 which is the newest....I can't find a link to download a newer Alfred beta. The old version seems to be active, though, or the new one has issues - return, shift and alt options work; cmd and ctrl don't.
×
×
  • Create New...