Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Reputation Activity

  1. Like
    deanishe got a reaction from umiyosh in workflow can't work when use proxy network   
    Yeah, it depends on the language the workflow is implemented in. Ruby and Python will use the http_proxy environmental variable (certainly if their built-in HTTP libs are used), PHP won't (AFAIK), so PHP workflow authors will have to consider proxy servers in their implementation.
     
    What Andrew said isn't totally clear. Alfred doesn't use your Terminal/bash environment (set via shell dotfiles) for workflows, but it does use your OS X environment set via setenv / launchctl setenv or /etc/launchd.conf.
     
    If you set http_proxy that way, instead of in .bashrc or .profile, it should work transparently with most Python/Ruby workflows.
  2. Like
    deanishe got a reaction from Don Dahl in Multilingual translation dictionary with Glosbe.com   
    Oops! My fault for not testing properly after fiddling with the code.
     
    The bug is fixed. Grab the fixed version from GitHub or Packal.
  3. Like
    deanishe got a reaction from rafaelcampos in ZotQuery: an Alfred workflow for Zotero   
    It sounds like you're using an old version of the workflow. Try downloading the current version.
  4. Like
    deanishe reacted to jmjeong in Yet another alfred-pinboard workflow (obsolete)   
    Yet another alfred2-pinboard workflow. It provides INSTANT pinboard search and various functionality.
    Github : https://github.com/jmjeong/alfred-extension/tree/master/pinboard Workflow Download : https://raw.github.com/jmjeong/alfred-extension/master/pinboard/pinboard.alfredworkflow  
    Updated:
     
    - v1.2 : Remove the dependency of cron job 
    - v1.1 : add [send to Pocket]
     
     
    ::: Version 2.0 is released. <2014-05-27 Tue>
  5. Like
    deanishe reacted to Tyler Eich in Bit stuck on a hotkey/keyword workflow...   
    For what it's worth, you don't need to use a Run Script action to open Alfred with a query. Hotkeys can handle this without any extra code:

  6. Like
    deanishe reacted to rice.shawn in Python Alfred feedback via print(); what's wrong?   
    It's just really easy to write invalid XML when generating it automatically. So, if someone was, say, pulling titles that had illegal characters, then they could be automatically escaped with certain PHP, Python, or Ruby functions. Without escaping those, it would break the XML. You can't always anticipate everything that a user is going to pipe into the workflow (or any bit of code, really), so escaping them prevents many bugs via illegal characters.
  7. Like
    deanishe got a reaction from Tyler Eich in Python Alfred feedback via print(); what's wrong?   
    It's called a heredoc. It's a bash thing. PHP  can do it, too. It's a simple way of creating really long, multi-line strings.
     
    It's not necessary in Python because you can do this (triple-quoted strings):
    xml = """<?xml version="1.0"?> <items> <item uid="whatever" arg="myResult"> <title>hallo</title> <subtitle>who is there?</subtitle> </item> </items>""" In a language like Python, PHP, Ruby or anything else that has built-in XML support, you should probably use those feature to generate your output. If you don't, sooner or later you'll end up with & or < or > in your output, which will break Alfred (invalid XML).
  8. Like
    deanishe got a reaction from Jono in Help passing (another) query to AppleScript   
    Asking for Finder's selection will return an "application file" object, "folder" object or "document file" object (or a combination), depending on what's selected.   Alfred gives your script a "text" object (i.e. the POSIX path to the selected app).   You have to turn that "text" object into an "application file" object to grab its id.     Using NSAppleScript: on alfred_script(q) set theFile to POSIX file q tell application "Finder" set theApp to application file theFile set theId to id of theApp display dialog "ID of application " & theApp & " : " & theId end tell end alfred_script Having to change object classes all the time is one of the things I dislike most about AppleScript, and there are a lot of things I dislike about it …
     
    It's a good habit to log the objects you're working with so you know what kind of objects they are. In AppleScript Editor, just do log theObject, and it will show up in the Events/Replies pane at the bottom.
  9. Like
    deanishe got a reaction from Veritas3241 in Argument character limit?   
    The output escaping isn't the problem—he's letting the XML library do that, as would any Alfred library.
     
    The big problem is the text encoding is all over the place. Veritas, you're mixing unicode strings (string_to_regex) and UTF-8-encoded strings (everything else). You must encode the output to UTF-8 before printing it to Alfred.
     
    Try this instead:
    # -*- coding: utf-8 -*- import sys from xml.etree.ElementTree import Element, SubElement, Comment, tostring string_to_regex = sys.argv[1].decode(u'utf-8') regexified = [] # Builds each part of the XML tree def build_xmltree(items): item = SubElement(items, u'item') title = SubElement(item, u'title') subtitle = SubElement(item, u'subtitle') icon = SubElement(item, u'icon') return (item, title, subtitle, icon) for i in string_to_regex: if i in u"\\[]().*+-^$|": regexified.append(u"\\" + i) else: regexified.append(i) alfred = u''.join(regexified) items = Element(u'items') item, title, subtitle, icon = build_xmltree(items) item.set(u'uid', u'regexified') item.set(u'arg', alfred) item.set(u'valid', u'yes') title.text = alfred subtitle.text = u'Copy to Clipboard' print tostring(items, encoding=u'utf-8') And set up the script escaping so:
     

     
    It should do what you want (if I've understood it correctly).
     
    A lot of the strings I've changed to unicode literals are unnecessary (tag names, 'utf-8' etc.), but it's a good habit to get into with Python 2, otherwise at some point you'll combine unicode and non-unicode and bad things will happen.
     
    Be sure to decode all external input (sys.argv, os.environ, sys.stdin etc.) to unicode immediately, and encode all output (usually to UTF-8) before you print/write it.
     
    If you don't do that, any non-ASCII character will likely break your script.
     
    If you're working with filepaths, you also have to call unicodedata.normalize(u'NFD', u'your unicode path here') or weird things will happen (on OS X).
  10. Like
    deanishe reacted to Sampayo in Switch Between audio input and output   
    Audio Switch
    ==================================================================================
     
    Switch between your input sources and output devices.
     
    To install just download (or my github) and doble click the .alfredworkflow file.*
     
    To change your input source type input (it could take a little bit to load your sources), then select the one you desire
     

     
    The same for the output device, just type output then select your choice
     

     
    Since I don't have any audio device or source connected to my laptop only 1 (the default) device and source are shown.
  11. Like
    deanishe reacted to Andrew in Would love a big new release :-)   
    Here you go:
     

  12. Like
    deanishe got a reaction from Jono in Help passing the selected file to an AppleScript   
    You don't use on alfred_script(q) with /usr/bin/osascript, but "{query}", as with other script types.
     
    This works (with caveats—see below):
    property automatorExtension : "workflow" property applescriptExtension : "scpt" set filePath to "{query}" set theFile to POSIX file filePath as alias tell application "Finder" -- If the file is an Automator workflow if (the name extension of theFile is in the automatorExtension) then set workflowPath to theFile as text set quotedWorkflowPath to quoted form of (POSIX path of workflowPath) set command to "/usr/bin/automator " & quotedWorkflowPath set output to do shell script command else -- If the file is an AppleScript if (the name extension of theFile is in the applescriptExtension) then set theScript to theFile as alias try run script (theScript) on error _error display dialog _error end try else -- If not an Automation workflow or an AppleScript display dialog ¬ ¬ "The selected file is not an Automation workflow or an AppleScript" buttons ¬ {"Cancel", "OK"} cancel button "Cancel" default button "OK" giving up after 5 end if end if end tell But you have to set the escaping properly (yours was wrong):
     

     
    Finally, it's worth noting that not all AppleScripts end with .scpt. I save mine in plain text format, so they have the extension .applescript.
     
    Also, you don't need that section at the end showing an error if the file isn't an Automator workflow or an AppleScript: the file filter ensures that only files of that type get passed to the action.
  13. Like
    deanishe got a reaction from brunoc in MailTo: Select multiple Contacts *and* Groups and compose in your favourite email app   
    2015-07-29: Version 2 released
     
    MailTo: Select multiple Contacts and/or Groups, and compose in your favourite email app
     
    Search your Contacts and compose an email to one or more recipients (or none) in your preferred email program. Also supports Groups.
     
    The main aim—versus Alfred's built-in, more comprehensive contact handling—is to make it fast and easy to select multiple recipients and especially groups.
     


    Features
    Search and add recipients from your Contacts database Send to Groups/Distribution Lists (they're the same thing) Also enter email addresses by hand Use any email client you want (uses system default as standard) Results prioritised by order of email addresses in Contacts Download/Installation
     
    Grab your copy from GitHub or Packal. Install in the usual fashion.
     
    Usage
     
    Keyword is @
    @ + ENTER — compose a blank mail (no recipients) @ [part of name or email address] — search your Contacts for matches. You can also add email addresses not in your Contacts. ENTER/⌘+NUM — add selected email address to recipient list and go to email program TAB — add selected email address to recipient list and continue searching mailto — see and change current settings If you've entered an invalid email address, it will be removed from the recipient list when your email app is called. Supported apps
     
    In theory, MailTo should work with any email client (it uses the mailto: protocol).
     
    Tested and working with:
    Airmail 1 Airmail 2 Apple Mail Sparrow Thunderbird Postbox Airmail (email addresses only) Unibox MailMate Mailbox Beta (email addresses only) MS Outlook Google Chrome (if you've set a handler) Fluid single-session browsers Does not work with:
    Safari (it will just open your system default email client) More info
     
    Please see the documentation.
     
    Note on Groups
     
    When deciding which email address to use for members of Groups, MailTo will use the one you've specified, or then the primary email address for the contact (don't ask me how to set that; I haven't been able to figure it out), and then the first one in their list of email addresses.
     
    To specify which address to use for a contact in a Group, open Contacts and go to Edit > Edit Distribution List …
     
    Changelog
     
    2013-10-31
    Add recipient name when calling email client, i.e. "Bob Smith <bob.smith@example.com>" instead of just "bob.smith@example.com". 2013-11-01
    Add support for Groups Prioritise email addresses by primary status then order in Contacts Change ID (cache format has changed) Use MIT licence 2013-11-03
    Change config keywords to mailtoconf and mailtohelp so they don't get mixed in with search results from the default mailto action. 2013-12-03
    Properly format the mailto: URL so workflow works correctly with MailMate. 2013-12-06
    Added built-in, app-specific support for the email clients listed above. They should now work flawlessly without any need to edit settings. Note: the settings format has changed, so all your settings (yes, both of them) have been reset. There should be no need to edit them if you're using MailTo with your default system email client. 2014-03-24
    Fix plist parsing problems. 2014-09-13
    Add support for Mailbox Beta Add new keyword @ 2015-07-29
    Release V2 Supports more types of contact accounts Supports more email clients Users can add support for their own clients 2016-02-10
    Add support for MS Outlook Add support for Airmail 2 Remove duplicates based on name and email address
  14. Like
    deanishe got a reaction from iNyar in Exclude folders and filetypes both globally and for file filters   
    Alfred should have the ability to exclude specific folders and filetypes from global and file-filter results, much like the file-filter include functionality, but in reverse.
     
    Alfred uses Apple's search API, which is include-only. This works well most of the time, but as a result, the only way to exclude files/folders from Alfred's results is to use Spotlight's privacy settings to exclude them from OS X's index, which means they're unavailable in Spotlight and any other app that also relies on the search system (HoudahSpot etc.). In many cases, this is not a viable option.
     
    There are many situations where Alfred's whitelist approach is a PITA or useless compared to a blacklist approach.
     
    For example, I have a lot of source code, which I regularly search using Spotlight, but don't want showing up in Alfred. It would be pretty simple to fix that with a global blacklist, but it's literally impossible without.
     
    Perhaps you want to include a directory in Alfred's global search, but exclude it from a specific file filter.
     
    Perhaps you want to use a file filter to search all filetypes or subdirectories bar one or two. But without blacklisting, you're forced to explicitly include every folder/filetype but the ones you want to ignore. If that isn't enough work, you need to update your file filter every time you add a new folder or new type of file.
     
    The problem is compounded by Alfred only displaying a limited number of results: you don't even get the chance to train it to associate a certain file with a keyword because the file never makes it into the list of search results.
  15. Like
    deanishe got a reaction from firezemissile in MailTo: Select multiple Contacts *and* Groups and compose in your favourite email app   
    Updated again today with new configuration/help keywords to stop them getting mixed up with the contact search results.
  16. Like
    deanishe got a reaction from nikivi in MailTo: Select multiple Contacts *and* Groups and compose in your favourite email app   
    2015-07-29: Version 2 released
     
    MailTo: Select multiple Contacts and/or Groups, and compose in your favourite email app
     
    Search your Contacts and compose an email to one or more recipients (or none) in your preferred email program. Also supports Groups.
     
    The main aim—versus Alfred's built-in, more comprehensive contact handling—is to make it fast and easy to select multiple recipients and especially groups.
     


    Features
    Search and add recipients from your Contacts database Send to Groups/Distribution Lists (they're the same thing) Also enter email addresses by hand Use any email client you want (uses system default as standard) Results prioritised by order of email addresses in Contacts Download/Installation
     
    Grab your copy from GitHub or Packal. Install in the usual fashion.
     
    Usage
     
    Keyword is @
    @ + ENTER — compose a blank mail (no recipients) @ [part of name or email address] — search your Contacts for matches. You can also add email addresses not in your Contacts. ENTER/⌘+NUM — add selected email address to recipient list and go to email program TAB — add selected email address to recipient list and continue searching mailto — see and change current settings If you've entered an invalid email address, it will be removed from the recipient list when your email app is called. Supported apps
     
    In theory, MailTo should work with any email client (it uses the mailto: protocol).
     
    Tested and working with:
    Airmail 1 Airmail 2 Apple Mail Sparrow Thunderbird Postbox Airmail (email addresses only) Unibox MailMate Mailbox Beta (email addresses only) MS Outlook Google Chrome (if you've set a handler) Fluid single-session browsers Does not work with:
    Safari (it will just open your system default email client) More info
     
    Please see the documentation.
     
    Note on Groups
     
    When deciding which email address to use for members of Groups, MailTo will use the one you've specified, or then the primary email address for the contact (don't ask me how to set that; I haven't been able to figure it out), and then the first one in their list of email addresses.
     
    To specify which address to use for a contact in a Group, open Contacts and go to Edit > Edit Distribution List …
     
    Changelog
     
    2013-10-31
    Add recipient name when calling email client, i.e. "Bob Smith <bob.smith@example.com>" instead of just "bob.smith@example.com". 2013-11-01
    Add support for Groups Prioritise email addresses by primary status then order in Contacts Change ID (cache format has changed) Use MIT licence 2013-11-03
    Change config keywords to mailtoconf and mailtohelp so they don't get mixed in with search results from the default mailto action. 2013-12-03
    Properly format the mailto: URL so workflow works correctly with MailMate. 2013-12-06
    Added built-in, app-specific support for the email clients listed above. They should now work flawlessly without any need to edit settings. Note: the settings format has changed, so all your settings (yes, both of them) have been reset. There should be no need to edit them if you're using MailTo with your default system email client. 2014-03-24
    Fix plist parsing problems. 2014-09-13
    Add support for Mailbox Beta Add new keyword @ 2015-07-29
    Release V2 Supports more types of contact accounts Supports more email clients Users can add support for their own clients 2016-02-10
    Add support for MS Outlook Add support for Airmail 2 Remove duplicates based on name and email address
  17. Like
    deanishe got a reaction from kopischke in SmartFolders: Browse and search the contents of your Saved Searches   
    I was wondering if you were German and if that could have something to do with it. Not your being German, but you Mac, of course. Being German is a splendid thing. Especially if you like football and/or beer
     
    Anyways, thanks very much for finding the problem and coming up with the solution. I've updated and uploaded the workflow with the necessary changes. Just download and re-install (if you haven't simply fixed your own copy yourself).
     
    I've tested it with my German account on my Mac (which I probably should have done in the first place), and it definitely works now.
  18. Like
    deanishe got a reaction from zhaowu in SmartFolders: Browse and search the contents of your Saved Searches   
    SmartFolders: Browse and search the contents of your Saved Searches
     
    List all the Smart Folders/Saved Searches (same thing) on your system and drill down into their contents. Works in much the same way as Alfred's File Filter, but Smart Folders are also available outside Alfred and are a bit more flexible.
     
    For example, you can configure a Smart Folder to show all video/audio/image files without having to specify each different filetype individually. If you already use Smart Folders, this workflow can save you the work of re-implementing them as File Filters.
     
    What's more, you can exclude specific filetypes with a Smart Folder, which Alfred cannot do.
     

     
    Features
    View and search a list of all Saved Searches on your system View and search the contents of the Smart Folders Add your own searches to go straight to a specific Smart Folder with a custom keyword Download/Installation
     
    Grab your copy from here. Install in the usual fashion.
     
    Usage
    .sf — List all your Smart Folders .sf [part of name] — Search for a specific Smart Folder TAB — Browse/search within Smart Folder ENTER — Open Smart Folder ⌘+ENTER — Reveal Smart Folder in Finder (same effect as opening it) .sf FOLDER 〉 [part of name] — Search contents of Smart Folder FOLDER ENTER — Open selected file/folder in default application ⌘+ENTER — Reveal file/folder in Finder smartfolders-help — Open included help file You can also set up your own Script Filters with a custom keyword that go straight to the contents of a specific Saved Search. For example, I have a Saved Search called "TODO" which contains all files/folders tagged "todo". I have linked this Smart Folder to the keyword .todo in Alfred.
     
    See the included example and the help file for more details.
     
    More info
     
    There's a bit more info on the GitHub page and in the included help file (smartfolders-help).
     
    This workflow uses alfred.py by nikipore and docopt.
     
    All comments and feedback welcome.
     
    Changelog
     
    2013-11-04
    Now works on non-English Macs. Thanks to kopischke for finding the problem and the solution.
  19. Like
    deanishe got a reaction from kopischke in Transmit favorites workflow (works with MAS version)   
    Thanks for the new version. I changed the modifiers again, though, because I want new connections to open in new windows not tabs. That way, it always works, regardless of whether I have a window open or not. Easily changed.
     
    So, I've been testing the workflow. It is searching on both name and server, but I don't like the way it doesn't prioritise the favourite names, but it does sort results by them:
     
    If I just enter "d", my first two results are:
     
    Bad Certificate
    badcert.domain-starting-with-d.com
    Bob's Diskstation
    diskstation.local
     
    The following results do have names starting with "d".
     
    If I enter "ra" my results are:
     
    Downloads
    randy.home.lan
    Incoming
    randy.home.lan
    Media
    randy.home.lan
    ...
    ...
    ...
    ...
    Radreisekarte
    ftp5.gwdg.de
     
    So, the first result whose favourite name starts with "ra" is number 8. The previous 7 are on a server whose name starts with "ra".
     
    IMO, the favourite name should be prioritised over the server name. That's the name I chose because that's the name I want to use.
     
    I hadn't realised the important part of the workflow was in Python (I thought it was all AppleScript), so I had a poke about, and I've changed the filtering to the following:
    faves = zip(names, addresses, indexes) results = [] q = q.lower() for t in faves: # name if t[0].lower().startswith(q): results.append(t) for t in faves: # address if t not in results and t[1].lower().startswith(q): results.append(t) for t in faves: # in name if t not in results and q.lower() in t[0].lower(): results.append(t) for t in faves: # in addr if t not in results and q.lower() in t[1].lower(): results.append(t) feedback = Feedback() for name, addr, idx in results: feedback.add_item(name.decode("utf-8"), addr, idx + "," + str(len(indexes))) print feedback This prioritises favourite names over server addresses and startswith over contains.
     
    I wish I were smart enough to make it do the "PS = Photoshop" style filtering
     
    P.S. I love the way you set names, addresses and indexes using steps of 3. I'll try to remember that trick.
  20. Like
    deanishe got a reaction from ClintonStrong in SmartFolders: Browse and search the contents of your Saved Searches   
    SmartFolders: Browse and search the contents of your Saved Searches
     
    List all the Smart Folders/Saved Searches (same thing) on your system and drill down into their contents. Works in much the same way as Alfred's File Filter, but Smart Folders are also available outside Alfred and are a bit more flexible.
     
    For example, you can configure a Smart Folder to show all video/audio/image files without having to specify each different filetype individually. If you already use Smart Folders, this workflow can save you the work of re-implementing them as File Filters.
     
    What's more, you can exclude specific filetypes with a Smart Folder, which Alfred cannot do.
     

     
    Features
    View and search a list of all Saved Searches on your system View and search the contents of the Smart Folders Add your own searches to go straight to a specific Smart Folder with a custom keyword Download/Installation
     
    Grab your copy from here. Install in the usual fashion.
     
    Usage
    .sf — List all your Smart Folders .sf [part of name] — Search for a specific Smart Folder TAB — Browse/search within Smart Folder ENTER — Open Smart Folder ⌘+ENTER — Reveal Smart Folder in Finder (same effect as opening it) .sf FOLDER 〉 [part of name] — Search contents of Smart Folder FOLDER ENTER — Open selected file/folder in default application ⌘+ENTER — Reveal file/folder in Finder smartfolders-help — Open included help file You can also set up your own Script Filters with a custom keyword that go straight to the contents of a specific Saved Search. For example, I have a Saved Search called "TODO" which contains all files/folders tagged "todo". I have linked this Smart Folder to the keyword .todo in Alfred.
     
    See the included example and the help file for more details.
     
    More info
     
    There's a bit more info on the GitHub page and in the included help file (smartfolders-help).
     
    This workflow uses alfred.py by nikipore and docopt.
     
    All comments and feedback welcome.
     
    Changelog
     
    2013-11-04
    Now works on non-English Macs. Thanks to kopischke for finding the problem and the solution.
  21. Like
    deanishe got a reaction from cands in MailTo: Select multiple Contacts *and* Groups and compose in your favourite email app   
    2015-07-29: Version 2 released
     
    MailTo: Select multiple Contacts and/or Groups, and compose in your favourite email app
     
    Search your Contacts and compose an email to one or more recipients (or none) in your preferred email program. Also supports Groups.
     
    The main aim—versus Alfred's built-in, more comprehensive contact handling—is to make it fast and easy to select multiple recipients and especially groups.
     


    Features
    Search and add recipients from your Contacts database Send to Groups/Distribution Lists (they're the same thing) Also enter email addresses by hand Use any email client you want (uses system default as standard) Results prioritised by order of email addresses in Contacts Download/Installation
     
    Grab your copy from GitHub or Packal. Install in the usual fashion.
     
    Usage
     
    Keyword is @
    @ + ENTER — compose a blank mail (no recipients) @ [part of name or email address] — search your Contacts for matches. You can also add email addresses not in your Contacts. ENTER/⌘+NUM — add selected email address to recipient list and go to email program TAB — add selected email address to recipient list and continue searching mailto — see and change current settings If you've entered an invalid email address, it will be removed from the recipient list when your email app is called. Supported apps
     
    In theory, MailTo should work with any email client (it uses the mailto: protocol).
     
    Tested and working with:
    Airmail 1 Airmail 2 Apple Mail Sparrow Thunderbird Postbox Airmail (email addresses only) Unibox MailMate Mailbox Beta (email addresses only) MS Outlook Google Chrome (if you've set a handler) Fluid single-session browsers Does not work with:
    Safari (it will just open your system default email client) More info
     
    Please see the documentation.
     
    Note on Groups
     
    When deciding which email address to use for members of Groups, MailTo will use the one you've specified, or then the primary email address for the contact (don't ask me how to set that; I haven't been able to figure it out), and then the first one in their list of email addresses.
     
    To specify which address to use for a contact in a Group, open Contacts and go to Edit > Edit Distribution List …
     
    Changelog
     
    2013-10-31
    Add recipient name when calling email client, i.e. "Bob Smith <bob.smith@example.com>" instead of just "bob.smith@example.com". 2013-11-01
    Add support for Groups Prioritise email addresses by primary status then order in Contacts Change ID (cache format has changed) Use MIT licence 2013-11-03
    Change config keywords to mailtoconf and mailtohelp so they don't get mixed in with search results from the default mailto action. 2013-12-03
    Properly format the mailto: URL so workflow works correctly with MailMate. 2013-12-06
    Added built-in, app-specific support for the email clients listed above. They should now work flawlessly without any need to edit settings. Note: the settings format has changed, so all your settings (yes, both of them) have been reset. There should be no need to edit them if you're using MailTo with your default system email client. 2014-03-24
    Fix plist parsing problems. 2014-09-13
    Add support for Mailbox Beta Add new keyword @ 2015-07-29
    Release V2 Supports more types of contact accounts Supports more email clients Users can add support for their own clients 2016-02-10
    Add support for MS Outlook Add support for Airmail 2 Remove duplicates based on name and email address
  22. Like
    deanishe got a reaction from meat-ball in MailTo: Select multiple Contacts *and* Groups and compose in your favourite email app   
    2015-07-29: Version 2 released
     
    MailTo: Select multiple Contacts and/or Groups, and compose in your favourite email app
     
    Search your Contacts and compose an email to one or more recipients (or none) in your preferred email program. Also supports Groups.
     
    The main aim—versus Alfred's built-in, more comprehensive contact handling—is to make it fast and easy to select multiple recipients and especially groups.
     


    Features
    Search and add recipients from your Contacts database Send to Groups/Distribution Lists (they're the same thing) Also enter email addresses by hand Use any email client you want (uses system default as standard) Results prioritised by order of email addresses in Contacts Download/Installation
     
    Grab your copy from GitHub or Packal. Install in the usual fashion.
     
    Usage
     
    Keyword is @
    @ + ENTER — compose a blank mail (no recipients) @ [part of name or email address] — search your Contacts for matches. You can also add email addresses not in your Contacts. ENTER/⌘+NUM — add selected email address to recipient list and go to email program TAB — add selected email address to recipient list and continue searching mailto — see and change current settings If you've entered an invalid email address, it will be removed from the recipient list when your email app is called. Supported apps
     
    In theory, MailTo should work with any email client (it uses the mailto: protocol).
     
    Tested and working with:
    Airmail 1 Airmail 2 Apple Mail Sparrow Thunderbird Postbox Airmail (email addresses only) Unibox MailMate Mailbox Beta (email addresses only) MS Outlook Google Chrome (if you've set a handler) Fluid single-session browsers Does not work with:
    Safari (it will just open your system default email client) More info
     
    Please see the documentation.
     
    Note on Groups
     
    When deciding which email address to use for members of Groups, MailTo will use the one you've specified, or then the primary email address for the contact (don't ask me how to set that; I haven't been able to figure it out), and then the first one in their list of email addresses.
     
    To specify which address to use for a contact in a Group, open Contacts and go to Edit > Edit Distribution List …
     
    Changelog
     
    2013-10-31
    Add recipient name when calling email client, i.e. "Bob Smith <bob.smith@example.com>" instead of just "bob.smith@example.com". 2013-11-01
    Add support for Groups Prioritise email addresses by primary status then order in Contacts Change ID (cache format has changed) Use MIT licence 2013-11-03
    Change config keywords to mailtoconf and mailtohelp so they don't get mixed in with search results from the default mailto action. 2013-12-03
    Properly format the mailto: URL so workflow works correctly with MailMate. 2013-12-06
    Added built-in, app-specific support for the email clients listed above. They should now work flawlessly without any need to edit settings. Note: the settings format has changed, so all your settings (yes, both of them) have been reset. There should be no need to edit them if you're using MailTo with your default system email client. 2014-03-24
    Fix plist parsing problems. 2014-09-13
    Add support for Mailbox Beta Add new keyword @ 2015-07-29
    Release V2 Supports more types of contact accounts Supports more email clients Users can add support for their own clients 2016-02-10
    Add support for MS Outlook Add support for Airmail 2 Remove duplicates based on name and email address
×
×
  • Create New...