Finder shortcuts for Enter/Return (open item or folder) and Delete (go to parent folder)

Description of what you are sharing

Below is the JSON for two triggers that affect the active Finder window -- enter opens or descends into the selected item, and delete ascends to the parent folder. This also ensures that enter and delete behave normally when renaming a file / folder.

[
  {
    "BTTActivationGroupName" : "Finder Window",
    "BTTAppName" : "Finder Window",
    "BTTAppAutoInvertIcon" : 1,
    "BTTAppProcessMatchMode" : 3,
    "BTTActivationGroupCondition" : "YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGvEB4LDBMZISssLjU5Pj9CRkpPUFNbX2NobXF0dXh5fH5VJG51bGzTDQ4PEBESXxAXTlNDb21wb3VuZFByZWRpY2F0ZVR5cGVfEA9OU1N1YnByZWRpY2F0ZXNWJGNsYXNzEAGAAoAd0hQPFRhaTlMub2JqZWN0c6IWF4ADgBSAHNQPGhscHR4fIF8QEU5TUmlnaHRFeHByZXNzaW9uXxAQTlNMZWZ0RXhwcmVzc2lvbl8QE05TUHJlZGljYXRlT3BlcmF0b3KAE4AOgASAEdUiIyQlDyYnKCkqWU5TT3BlcmFuZF5OU1NlbGVjdG9yTmFtZV8QEE5TRXhwcmVzc2lvblR5cGVbTlNBcmd1bWVudHOABoAFEAOACIANXHZhbHVlRm9yS2V5OtIkDxAtgAfSLzAxMlokY2xhc3NuYW1lWCRjbGFzc2VzXxAQTlNTZWxmRXhwcmVzc2lvbqMxMzRcTlNFeHByZXNzaW9uWE5TT2JqZWN00hQPNjihN4AJgAzTDyQ6Ozw9WU5TS2V5UGF0aIALEAqACldhcHBOYW1l0i8wQEFfEBxOU0tleVBhdGhTcGVjaWZpZXJFeHByZXNzaW9uo0AzNNIvMENEXk5TTXV0YWJsZUFycmF5o0NFNFdOU0FycmF50i8wR0hfEBNOU0tleVBhdGhFeHByZXNzaW9upEdJMzRfEBROU0Z1bmN0aW9uRXhwcmVzc2lvbtNLJA9MTU5fEA9OU0NvbnN0YW50VmFsdWWADxAAgBBWRmluZGVy0i8wUVJfEBlOU0NvbnN0YW50VmFsdWVFeHByZXNzaW9uo1EzNNUPVFVWV1hNWU1aWk5TTW9kaWZpZXJYTlNOZWdhdGVZTlNPcHRpb25zXk5TT3BlcmF0b3JUeXBlgBIIEATSLzBcXV8QG05TRXF1YWxpdHlQcmVkaWNhdGVPcGVyYXRvcqNcXjRfEBNOU1ByZWRpY2F0ZU9wZXJhdG9y0i8wYGFfEBVOU0NvbXBhcmlzb25QcmVkaWNhdGWjYGI0W05TUHJlZGljYXRl1A8aGxwdZWZngBOAGYAVgBvVIiMkJQ8mJyhrKoAGgAWAFoAN0hQPbjihb4AXgAzTDyQ6OzxzgAuAGF8QEmZvY3VzZWRFbGVtZW50Um9sZdNLJA92TU6AGoAQWUFYT3V0bGluZdUPVFVWV1hNWU1agBII0i8wRX2iRTTSLzB_gF8QE05TQ29tcG91bmRQcmVkaWNhdGWjf2I0AAgAEQAaACQAKQAyADcASQBMAFEAUwB0AHoAgQCbAK0AtAC2ALgAugC_AMoAzQDPANEA0wDcAPABAwEZARsBHQEfASEBLAE2AUUBWAFkAWYBaAFqAWwBbgF7AYABggGHAZIBmwGuAbIBvwHIAc0BzwHRAdMB2gHkAeYB6AHqAfIB9wIWAhoCHwIuAjICOgI_AlUCWgJxAngCigKMAo4CkAKXApwCuAK8AscC0gLbAuUC9AL2AvcC+QL+AxwDIAM2AzsDUwNXA2MDbANuA3ADcgN0A38DgQODA4UDhwOMA44DkAOSA5kDmwOdA7IDuQO7A70DxwPSA9QD1QPaA90D4gP4AAAAAAAAAgEAAAAAAAAAgQAAAAAAAAAAAAAAAAAAA_w=",
    "BTTAppSpecificSettings" : {
      "BTTDisableGlobalTriggers" : false
    },
    "BTTTriggers" : [
      {
        "BTTTriggerType" : 0,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTPredefinedActionType" : 172,
        "BTTPredefinedActionName" : "Run Apple Script (blocking)",
        "BTTInlineAppleScript" : "tell application \"System Events\"\r\ttell process \"Finder\"\r\t\tif exists text field 1 then\n\t\t    keystroke return\r\t\telse\n\t\t    keystroke \"o\" using {command down}\r\t\tend if\r\tend tell\rend tell\n",
        "BTTAdditionalConfiguration" : "0",
        "BTTEnabled2" : 1,
        "BTTKeyboardShortcutKeyboardType" : 5167,
        "BTTRepeatDelay" : 0,
        "BTTUUID" : "F4DC7584-A7E2-43F9-A904-D1B1C17D2C87",
        "BTTTriggerOnDown" : 0,
        "BTTNotesInsteadOfDescription" : 0,
        "BTTLayoutIndependentChar" : "RETURN",
        "BTTEnabled" : 1,
        "BTTModifierMode" : 0,
        "BTTShortcutKeyCode" : 36,
        "BTTShortcutModifierKeys" : 0,
        "BTTOrder" : 2,
        "BTTDisplayOrder" : 0,
        "BTTAutoAdaptToKeyboardLayout" : 0
      },
      {
        "BTTTriggerType" : 0,
        "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
        "BTTPredefinedActionType" : 172,
        "BTTPredefinedActionName" : "Run Apple Script (blocking)",
        "BTTInlineAppleScript" : "tell application \"System Events\"\r\ttell process \"Finder\"\r\t\tif exists text field 1 then\n\t\t\tkeystroke (ASCII character 8)\r\t\telse\n\t\t    # Command-Up\n\t\t    key code 126 using command down\r\t\t\t#end tell\r\t\tend if\r\tend tell\rend tell",
        "BTTAdditionalConfiguration" : "0",
        "BTTEnabled2" : 1,
        "BTTKeyboardShortcutKeyboardType" : 5167,
        "BTTRepeatDelay" : 0,
        "BTTUUID" : "BDB0950E-295E-4596-8604-C52F7CF2F6C3",
        "BTTTriggerOnDown" : 0,
        "BTTNotesInsteadOfDescription" : 0,
        "BTTLayoutIndependentChar" : "DELETE",
        "BTTEnabled" : 1,
        "BTTModifierMode" : 0,
        "BTTShortcutKeyCode" : 51,
        "BTTShortcutModifierKeys" : 0,
        "BTTOrder" : 1,
        "BTTDisplayOrder" : 0,
        "BTTAutoAdaptToKeyboardLayout" : 0
      }
    ]
  }
]

how do you get this to work? Tried copy and paste in BTT interface but no luck, thought maybe I need to have a certain place selected, on finder or triggers section? Ill keep trying but any help be appreciated

don't think the applescript is working....at least not in Ventura. I copied into BTT and triggers are setup correctly and when shortcut pressed looks like finder trying to do something ie GUI scripting in menu but nothing happens get beep sound or nothing.

I did find out how tto do this using CAG arguments instead.

thanks

I am using Ventura, and it is generally working (with a few occasional quirks). If you did find a better way (or improvements to this), please feel free to share how!

Hey, you can give this a shot. Should work fine: Using "Delete" and "Return" in Finder to Go Back and Forward