Creating custom keyboard shortcuts for submenues in OS X ?

0 views
Skip to first unread message

IV

unread,
Mar 5, 2005, 6:27:23 PM3/5/05
to 43Fo...@googlegroups.com
Hello All,

Is there a way to create a custom keyboard shortcut for a _submenu_
item in OS X?

Basically, I'd like to have a keyboard shortcut to move certain email
messages in Mail into the corresponding folder. Filtering is not
exactly useful since I would like the message to remain in the inbox so
I can read it and _then_ move or trash it.
So the menu sequence would be "Message">"Move To:">"List".
The literature I have consulted does not mention any way to specify a
submenu although every place seems to particularly care about ellipses
:).

Best, Ivan.

Jeff Porten

unread,
Mar 5, 2005, 7:31:49 PM3/5/05
to 43Fo...@googlegroups.com
On Mar 5, 2005, at 6:27 PM, IV wrote:

> Basically, I'd like to have a keyboard shortcut to move certain email
> messages in Mail into the corresponding folder. Filtering is not
> exactly useful since I would like the message to remain in the inbox so
> I can read it and _then_ move or trash it.

tell application "Mail"
set tmsgs to selection
set tfolder to mailbox "MailboxName"
move every item in tmsgs to tfolder
end tell

Save as a script to ~/Library/Scripts/Mail Scripts with a name followed
by three underscores and the keystroke you want, i.e., ctl-r. See
existing scripts for style hints.

Best,
Jeff

IV

unread,
Mar 5, 2005, 10:11:25 PM3/5/05
to 43Fo...@googlegroups.com
Thank you Jeff,

works just fine.

Although that ctl-r example lead to a force quit, he-he.

Cheers, Ivan.

Kirk McElhearn

unread,
Mar 6, 2005, 4:23:58 AM3/6/05
to 43Fo...@googlegroups.com
On 3/6/05 12:27 AM, "IV" <ivan.vi...@gmail.com> wrote:

> Basically, I'd like to have a keyboard shortcut to move certain email
> messages in Mail into the corresponding folder. Filtering is not
> exactly useful since I would like the message to remain in the inbox so
> I can read it and _then_ move or trash it.
> So the menu sequence would be "Message">"Move To:">"List".
> The literature I have consulted does not mention any way to specify a
> submenu although every place seems to particularly care about ellipses
> :).

You don't need to specify anything other than the name of the menu item. So,
in this case, just "List".


Kirk

Read my blog: Kirkville -- http://www.mcelhearn.com
Musings, Opinion and Miscellanea, on Macs, iPods and more
Kirk McElhearn | Chemin de la Lauze | 05600 Guillestre | France


Reply all
Reply to author
Forward
0 new messages