• Is there a way to assign a keyboard shortcut to an Open With selection

    From Bruce Horrocks@21:1/5 to All on Sat Sep 3 10:01:08 2022
    In Finder, if you highlight a file and then ctrl-click or right-click
    the 'Open With' menu is displayed. Is there a way to assign a keyboard
    shortcut to one of those actions so that I can dispense with the
    ctrl-click and navigating the mouse down to the required action?

    It's fine once or twice but rapidly becomes tedious when it has to done frequently. Note that I explicitly do not want to permanently change the default application that the file type opens with because I am
    alternately editing these files in two apps.

    I'm using Monterey.
    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nospam@21:1/5 to Horrocks on Sat Sep 3 07:03:02 2022
    In article <559f3d68-077d-5da8-35cd-78316d192923@scorecrow.com>, Bruce
    Horrocks <07.013@scorecrow.com> wrote:

    In Finder, if you highlight a file and then ctrl-click or right-click
    the 'Open With' menu is displayed. Is there a way to assign a keyboard shortcut to one of those actions so that I can dispense with the
    ctrl-click and navigating the mouse down to the required action?

    It's fine once or twice but rapidly becomes tedious when it has to done frequently. Note that I explicitly do not want to permanently change the default application that the file type opens with because I am
    alternately editing these files in two apps.

    better touch tool has an 'open current finder selection with specific
    app' option (in the controlling other applications section, about
    halfway down the page).

    <https://docs.folivora.ai/docs/6_predefined_actions.html>

    i haven't tried it so i don't know if it will do what you want but it
    seems like it should.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Hewitt@21:1/5 to Bruce Horrocks on Sat Sep 3 11:43:13 2022
    Bruce Horrocks <07.013@scorecrow.com> wrote:
    In Finder, if you highlight a file and then ctrl-click or right-click
    the 'Open With' menu is displayed. Is there a way to assign a keyboard shortcut to one of those actions so that I can dispense with the
    ctrl-click and navigating the mouse down to the required action?

    It's fine once or twice but rapidly becomes tedious when it has to done frequently. Note that I explicitly do not want to permanently change the default application that the file type opens with because I am
    alternately editing these files in two apps.

    I'm using Monterey.

    Yes, you can create a keyboard shortcut.

    https://support.apple.com/en-gb/guide/mac-help/mchlp2271/mac

    --
    Andy H

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruce Horrocks@21:1/5 to Andy Hewitt on Sat Sep 3 18:05:14 2022
    On 03/09/2022 12:43, Andy Hewitt wrote:
    Bruce Horrocks <07.013@scorecrow.com> wrote:
    In Finder, if you highlight a file and then ctrl-click or right-click
    the 'Open With' menu is displayed. Is there a way to assign a keyboard
    shortcut to one of those actions so that I can dispense with the
    ctrl-click and navigating the mouse down to the required action?

    It's fine once or twice but rapidly becomes tedious when it has to done
    frequently. Note that I explicitly do not want to permanently change the
    default application that the file type opens with because I am
    alternately editing these files in two apps.

    I'm using Monterey.

    Yes, you can create a keyboard shortcut.

    https://support.apple.com/en-gb/guide/mac-help/mchlp2271/mac

    Unfortunately that doesn't work because of this restriction stated at
    the bottom of the page: "You can create keyboard shortcuts only for
    existing menu commands. You can’t create keyboard shortcuts for general purpose tasks, such as opening an app."

    So I can successfully create "File->Get Info" but I can't create
    "File->Open With->MacVim.app".

    I was able to create an Automator 'quick action' which receives the
    selected Finder item and passes that to a Shell script to open it; and
    then assign a keyboard shortcut to that in the Keyboards control panel.

    Not being able to run any menu command seems like a missed opportunity.

    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graham J@21:1/5 to Bruce Horrocks on Sat Sep 3 18:19:27 2022
    Bruce Horrocks wrote:
    On 03/09/2022 12:43, Andy Hewitt wrote:
    Bruce Horrocks <07.013@scorecrow.com> wrote:
    In Finder, if you highlight a file and then ctrl-click or right-click
    the 'Open With' menu is displayed. Is there a way to assign a keyboard
    shortcut to one of those actions so that I can dispense with the
    ctrl-click and navigating the mouse down to the required action?

    It's fine once or twice but rapidly becomes tedious when it has to done
    frequently. Note that I explicitly do not want to permanently change the >>> default application that the file type opens with because I am
    alternately editing these files in two apps.

    I'm using Monterey.

    Yes, you can create a keyboard shortcut.

    https://support.apple.com/en-gb/guide/mac-help/mchlp2271/mac

    Unfortunately that doesn't work because of this restriction stated at
    the bottom of the page: "You can create keyboard shortcuts only for
    existing menu commands. You can’t create keyboard shortcuts for general purpose tasks, such as opening an app."

    So I can successfully create "File->Get Info" but I can't create
    "File->Open With->MacVim.app".

    I was able to create an Automator 'quick action' which receives the
    selected Finder item and passes that to a Shell script to open it; and
    then assign a keyboard shortcut to that in the Keyboards control panel.

    Not being able to run any menu command seems like a missed opportunity.

    Why not:

    Open the app first;
    Use its File | Open mechanism to navigate to the desired file:
    (which could well be in a recent files list)
    ?


    --
    Graham J

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)