Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by dfay

  1. "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.

  2. 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.



    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.


  3. Here is a very simple workflow I cooked up to map directions from a fixed address to a selected contact.




    I've never seen rome2rio before, but looking at it, the URL scheme is dead simple:




    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.

  4. 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.  
  5. 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"




    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



  6. 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 2021-01-05 for Big Sur and Keynote 10


    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)

  7. Hi dfay,


    Can you please check your error log as Edwin did. Tell me if there something logged.




    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 :)

  8. 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}"

  9. I'd look at the first example here: http://www.alfredforum.com/topic/1283-how-to-script-filters-reusing-a-single-script-filter-or-chaining-multiple-together/


    It inputs last name, writes it to a temporary file, calls a second search action that inputs first name, reads last name from the temporary file, deletes the temporary file, and finally outputs first name last name.


    You'd just need to modify it to get the addresses from contacts instead of user input (which it sounds like you've figured out already), and change the echo  command in the 2nd bash script to include all the necessary bits for the google maps URL, then replace the Post Notification with a Open URL.

  10. I am setting up a very simple workflow (my first).


    I have a keyword linked to a Run NSAppleScript action, with a script that executes successfully.  Here's the script:



    on alfred_script(q)
      tell application "TaskPaper"
        tell front document
            tell project named "Inbox"
                make new entry at beginning with properties {name:"- " & q}
            end tell
        end tell
    end tell
    end alfred_script
    The Run NSAppleScript action links to a Post Notification output with text set to
    {query} added to Taskpaper
    If I check the "Only show if passed in argument has content" box, the notification doesn't display.  If I uncheck the blank, I get a notification reading "added to Taskpaper".  i.e. the Post Notification output thinks that {query} is blank.
    How do I get the NSAppleScript to pass on {query} to the Post Notification output?
  • Create New...