Jump to content

dfay

Member
  • Content Count

    822
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by dfay

  1. Toggles the view mode in OS X mail - between the "Classic" view and the new view introduced with OS X Lion. Uses Applescript UI scripting (the only way I could find to do this) so the preference pane pops up briefly. http://dfay.fastmail.fm/alfred/Toggle%20Mail%20view.alfredworkflow
  2. Updated August 24, 2018 This is now a single workflow -- there are hotkeys for the following five actions: Uppercase Lowercase Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows) Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows) Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case All of these are set to Copy to Clipboard and Paste by default. There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow). You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text. Download: https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0 2018-02-09: updated link and updated workflow with fix to python workflow library The old version is described below and still available, if anyone prefers it. Workflow Version: This workflow converts the case of the text on the clipboard. http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow There are two workflows which display the following five options: Uppercase Lowercase Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows) Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows) Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case The keyword case will transform the text on the clipboard without pasting the result. The keyword casep will transform the text on the clipboard and paste (using Applescript System Events) Hotkey Version: Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text. These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste. http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow Notes and Revision History: These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase . If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations. Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ ) Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion. Updated May 20, 2014 with hotkeys
  3. Viewing running apps and quitting them is already built-in using the keyword "quit" http://support.alfredapp.com/features:system Alternatively (without Alfred) you can use command-Tab to switch and command-Q (while the command-Tab view is still on the screen) to quit an app without switching to it. http://osxdaily.com/2009/11/17/secrets-of-the-command-tab-mac-application-switcher/
  4. "Way better to add bookmarks like this than with a bookmarklet" I'm not so sure....I installed this and used it for a couple of days (just dropped into the forum to see the update), but I keep going back to the Delibar bookmarklet (I had shelled out the $9.99 for Delibar years ago and it has been well worth it). It's not just that old habits die hard - it's just that the bookmarklet has features - already works in any browser, sets selected text as description (or set manually in the Delibar dialog), and tag auto-completion, that are just being added or not available with the Alfred workflow. Tag auto-completion is the main appeal of Delibar & it seems that there are obstacles to doing this easily in the Alfred interface - 1) you'd need to generate a new list of tags (slow) or cache a full list of the user's tags - which isn't impossible & 2) the only obvious way to do the auto-complete would be a script filter -- then do you chain multiple scripts together? Or present an option in Alfred for every possibility for each tag, repeating for multiple tags?. I'd love to see it in the workflow, & I like the elegance of Alfred for most tasks, but without tag completion I don't see it replacing Delibar's bookmarklet.
  5. How would this work? Would you want the top hit for the search term(s) from each database? Or multiple results from each?
  6. Hi Pedro I've been playing with Mail Act-On a bit, but don't like the interface, so I'm hoping for this workflow.... I tried running getList.scpt in Applescript Editor (uncommenting the line ' --set Opt to "bill" ') and the result was correctly formed XML with the relevant matching mailboxes correctly. And as I mentioned before the file ~/Library/Application Support/Alfred 2/Workflow Data/com.palobo.mailactions/ looks like it has a complete list of my mailboxes. Likewise if I run getUnread.scpt in Applescript Editor. It returns an XML formatted list of my mailboxes with unread messages successfully, no errors. Also the minfo script doesn't work for me either. I get the two options, but selecting either one just dismisses Alfred without anything else happening. Let me know if I can help with anything - hope this helps. Derick
  7. Nice. Way better than my half-hearted attempt I didn't look at the rome2rio API. Although it pulled up a 404 on a search and a preview just now. I'll see if I can replicate it.
  8. This sounds familiar: http://xkcd.com/1172/
  9. Here is a simple r2r workflow: http://www.alfredforum.com/topic/1952-rome2rio/
  10. A basic, two-step workflow to search Rome2Rio. Based on David Ferguson's "Using Script Filters." Could probably be converted to a one-step version with delimiters by someone who knew php using David's model. Rome2Rio.alfredworkflow
  11. Here is a very simple workflow I cooked up to map directions from a fixed address to a selected contact. http://www.alfredforum.com/topic/1725-mileage-tracker/?hl=mileage I've never seen rome2rio before, but looking at it, the URL scheme is dead simple: http://www.rome2rio.com/s/origin/destination It's quite impressive - since it uses Google Maps to parse the addresses you can be pretty sloppy and still get results. It would be a matter of capturing origin and destination (modifying David Ferguson's script filter example) then calling the URL. BTW I think your post should be in Workflow Help & Questions - this forum is for completed workflows.
  12. This is how I've set it up: keyword -> Launch Apps / Files (with my selected files) -> Run Script where the script is Language: /usr/bin/osascript and the script is as follows: tell application "Moom" arrange windows according to snapshot named "MyLayout" end tell This assumes you've set up a Window Layout Snapshot in Moom called "MyLayout" & which is appropriate for the selected files. I've set up custom snapshots on all three of my machines for the optimal workspace layout based on screen size. Since Moom prefs. are local to each machine (and hence customized based on screen size) but Alfred prefs. are synced in Dropbox, this works great. I can use the same keyword on each machine, and get appropriate results.
  13. Another Applescript-based workflow. It defaults to M/D/YYYY date format but comments in the script explain how to modify for D/M/YYYY Years are optional. Follow the date with d m or w to change the view. It also recognizes "today" examples: cal 3/5 - opens Calendar to March 5 of the current year in the last opened view cal 10/15/2013 - opens Calendar to October 15, 2013 in the last opened view cal 8/8 d - opens Calendar to August 8 of the current year in day view cal 8/8 m - opens Calendar to August 8 of the current year in month view cal 8/8/2014 w - opens Calendar to August 8 of 2014 in week view cal today w - opens Calendar to the current date in week view Download: View Calendar on date with view…..alfredworkflow
  14. Thanks! I have a bunch of BibDesk applescripts and templates that may be useful to anyone who finds this workflow useful: http://dfay.fastmail.fm/bibdesk/
  15. Here's a workflow that uses Applescript UI scripting to save the currently open Keynote document as a PDF. It uses the print dialog rather than the Export... menu item to give more flexibility in the layout etc. I've tried to comment the script so that the selections can be easily customized. It stops once the Save... dialog is open, so you can change the filename before saving if desired. This was an interesting project, which will save me lots of mouse clicks in the long term. It's surprising how little Applescript seems to have been written for Keynote. Updated 2014-01-31 to fix Applescript UI click issue introduced with Mavericks ( http://macscripter.n...=170632#p170632 for details ). Still only works with Keynote '09. Updated 2014-04-02 to work with Keynote 6 (finally Apple has restored Applescript to the new iWork!) There are now two keywords kpdf - for use with Keynote 6.2 k5pdf - for use with Keynote 5 (i.e. iWork '09 version)
  16. Thanks for following up. error.log is Zero bytes and empty. 300 mailboxes are probably an artifact of the old days before rapid full-text searching, when anything that wasn't filed could get lost... - just checked and the oldest message is from 1997
  17. anthropologist seeking ways to improve academic workflow

  18. Here is a simple workflow that uses UI Applescripting (thanks to https://discussions.apple.com/thread/4011487?start=0&tstart=0 ) to delete cookies for a single website in Safari: Delete cookies for specific site on Safari.alfredworkflow I need to do this a lot when switching on VPN after a Google Scholar search....hopefully others will find it useful.
  19. If you don't want to enter it yourself, it's here: Mapper.alfredworkflow
  20. Here is how to do the hardcoded version (i.e. select destination only). 3 elements 1) Contact Action linked to 2) a one line bash script (escaping everything except spaces) - this removes line breaks from the address: echo "{query}" | tr "\n" " " linked to 3) a one line bash script (escaping everything except spaces): open "http://maps.google.com/maps?saddr=yourstartingaddress&daddr={query}"
  21. bump to make this possible: http://www.alfredforum.com/topic/1725-mileage-tracker/ needs multiple custom actions per contact
  22. Unless there's another way to get contact info. in Alfred, I don't see an easy way to select start and destination address until this issue is addressed: http://www.alfredforum.com/topic/331-descriptive-name-for-custom-call-actions-in-main-alfred-window/
  23. Thanks. I had some trouble getting started but it was b/c I didn't realize that username: is part of the pinboard API key.
  24. Thanks. I had tried it with "return q" after the last line, but moving it to before "end alfred_script" passes it successfully.
×
×
  • Create New...