Back

GetShortcuts

JS Py
Hello World

Returns list of shortcuts associated with current app.

app.GetShortcuts() → List

Might return null when the feature is not supported.

See also: CreateShortcut

Example - Show Shortcuts

function OnStart()
{
    var list = app.GetShortcuts();
    if (list == null) app.Alert( "Unsupported" );
    else app.Alert( list, "" );
}
from native import app

def OnStart():
    list = app.GetShortcuts()
    if list == null: app.Alert( "Unsupported" )
    else: app.Alert( list, "" )
Copy All       Run