Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Send and Archive button

#519

Can't seem to figure out a way to attach a keyboard shortcut to Send and Archive - tried Applescript UI Scripting, Keyboard Maestro, no luck. Any hints?

Reported by Teddy Svoronos · December 3rd, 2013 @ 09:34 PM

State: fixreleased
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to closed

    There is no easy way, but you can do it using a custom key binding with sendAndArchiveParent:.

    Note that it can be a bit hard to find a working key binding in the composer since many are reserved by the Composer. Here is an example using ⇧F1:

    "$\UF704"   = "sendAndArchiveParent:";
    

    December 4th, 2013 @ 09:24 AM

  2. Teddy Svoronos
    Teddy Svoronos

    Hi Benny,

    I created a Special.plist file in /Applications/MailMate.app/Contents/Resources/KeyBindings/ with the following text:

    {
    
    "@^~D"   = "sendAndArchiveParent:";
    
    }
    

    I'm trying to map "D" with all modifier keys pressed to this function. I also added "Special" to the Custom Key Binding list in preferences. Any idea why this might not work?

    December 4th, 2013 @ 02:31 PM

  3. benny
    benny
    • State changed from closed to accepted

    There is a general problem with any key bindings using @ (⌘). I'm actually not sure when, if ever, it works. I'll reopen this ticket and use it to track any progress on this issue.

    December 4th, 2013 @ 03:14 PM

  4. benny
    benny
    • State changed from accepted to fixcommitted

    Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane to get a version of MailMate with a fix for this issue.

    December 6th, 2013 @ 03:45 PM

  5. Teddy Svoronos
    Teddy Svoronos

    Hi Benny,

    Thanks for this. I just updated and

    {
    
    "@^~D"   = "sendAndArchiveParent:";
    
    }
    

    still doesn't work, though the shift-F1 still does work. Any idea what might be going wrong?

    December 6th, 2013 @ 03:57 PM

  6. benny
    benny

    The order of modifiers is important (I've updated the manual):

    "^~@D" = "sendAndArchiveParent:";
    

    Note that this means ⌃⌥⇧⌘D (uppercase D means ⇧ is also needed).

    December 6th, 2013 @ 04:05 PM

  7. benny
    benny

    It's r3880 by the way. In case the update failed (see the revision number in the About window).

    December 6th, 2013 @ 04:07 PM

  8. Teddy Svoronos
    Teddy Svoronos

    Yep, I have my caps lock key mapped to control+option+command+shift, so I'm using caps lock + D. I tried making it just @#~d and not using the hyper key, but no luck.

    December 6th, 2013 @ 04:11 PM

  9. benny
    benny

    Note that the order of modifiers is important. It must be:

    "^~@D" = "sendAndArchiveParent:";
    

    And I forgot to emphasize this: When using a key binding with ⌘ then it is still necessary for the focus to be in the text view of the Composer and not in any of the headers.

    December 7th, 2013 @ 12:32 PM

  10. benny
    benny
    • State changed from fixcommitted to fixreleased

    December 17th, 2013 @ 06:42 PM

  11. Yogananda
    Yogananda

    Is there any reason why "Send and Archive Parent" is not available as a menu command?

    March 6th, 2017 @ 09:16 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.