Hi @spawn5m, welcome to the community!
Would something like this work for you?
My configuration first uses an If Condition
type of Action with its "condition" set to:
if ( running_process CONTAINS "Finder" )
This condition evaluates to true
when the Finder application is running and false
when it is not running.
If it evaluates to true
, then the Send Shortcut to Specific App
Action will be executed. Specifically, the Action is configured to send ⌘ N
to the Finder app.
If it evaluates to false
, then the Open Finder
Action will be executed.
If you copy this JSON, then you can paste it into the BTT Action configuration section to replicate what I made in the screenshot:
[
{
"BTTActionCategory" : 0,
"BTTIsPureAction" : true,
"BTTPredefinedActionType" : 330,
"BTTPredefinedActionName" : "If Condition",
"BTTIfConditionFormat" : "running_processes CONTAINS \"Finder\"",
"BTTIfConditionData" : "YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMSAAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGvEBYLDBMYICorLTQ4PT5BRUlOT1JYXGBiVSRudWxs0w0ODxAREl8QF05TQ29tcG91bmRQcmVkaWNhdGVUeXBlXxAPTlNTdWJwcmVkaWNhdGVzViRjbGFzcxABgAKAFdIUDxUXWk5TLm9iamVjdHOhFoADgBTUDxkaGxwdHh9fEBFOU1JpZ2h0RXhwcmVzc2lvbl8QEE5TTGVmdEV4cHJlc3Npb25fEBNOU1ByZWRpY2F0ZU9wZXJhdG9ygBOADoAEgBHVISIjJA8lJicoKVlOU09wZXJhbmReTlNTZWxlY3Rvck5hbWVfEBBOU0V4cHJlc3Npb25UeXBlW05TQXJndW1lbnRzgAaABRADgAiADVx2YWx1ZUZvcktleTrSIw8QLIAH0i4vMDFaJGNsYXNzbmFtZVgkY2xhc3Nlc18QEE5TU2VsZkV4cHJlc3Npb26jMDIzXE5TRXhwcmVzc2lvblhOU09iamVjdNIUDzU3oTaACYAM0w8jOTo7PFlOU0tleVBhdGiACxAKgApfEBFydW5uaW5nX3Byb2Nlc3Nlc9IuLz9AXxAcTlNLZXlQYXRoU3BlY2lmaWVyRXhwcmVzc2lvbqM_MjPSLi9CQ15OU011dGFibGVBcnJheaNCRDNXTlNBcnJhedIuL0ZHXxATTlNLZXlQYXRoRXhwcmVzc2lvbqRGSDIzXxAUTlNGdW5jdGlvbkV4cHJlc3Npb27TSiMPS0xNXxAPTlNDb25zdGFudFZhbHVlgA8QAIAQVkZpbmRlctIuL1BRXxAZTlNDb25zdGFudFZhbHVlRXhwcmVzc2lvbqNQMjPUD1NUVVZMTFdaTlNNb2RpZmllcldOU0ZsYWdzXk5TT3BlcmF0b3JUeXBlgBIQY9IuL1laXxAVTlNJblByZWRpY2F0ZU9wZXJhdG9yo1lbM18QE05TUHJlZGljYXRlT3BlcmF0b3LSLi9dXl8QFU5TQ29tcGFyaXNvblByZWRpY2F0ZaNdXzNbTlNQcmVkaWNhdGXSLi9EYaJEM9IuL2NkXxATTlNDb21wb3VuZFByZWRpY2F0ZaNjXzMACAARABoAJAApADIANwBJAEwAUQBTAGwAcgB5AJMApQCsAK4AsACyALcAwgDEAMYAyADRAOUA+AEOARABEgEUARYBIQErAToBTQFZAVsBXQFfAWEBYwFwAXUBdwF8AYcBkAGjAacBtAG9AcIBxAHGAcgBzwHZAdsB3QHfAfMB+AIXAhsCIAIvAjMCOwJAAlYCWwJyAnkCiwKNAo8CkQKYAp0CuQK9AsYC0QLZAugC6gLsAvEDCQMNAyMDKANAA0QDUANVA1gDXQNzAAAAAAAAAgEAAAAAAAAAZQAAAAAAAAAAAAAAAAAAA3c=",
"BTTEnabled2" : 1,
"BTTOrder" : 0
},
{
"BTTActionCategory" : 0,
"BTTIsPureAction" : true,
"BTTPredefinedActionType" : 128,
"BTTPredefinedActionName" : "Send Shortcut to Specific App",
"BTTLayoutIndependentActionChar" : "\/System\/Library\/CoreServices\/Finder.app",
"BTTShortcutApp" : "\/System\/Library\/CoreServices\/Finder.app",
"BTTShortcutSwitchToAppFirst" : "1",
"BTTShortcutAppUnderCursor" : "com.apple.finder",
"BTTShortcutToSend" : "55,45",
"BTTEnabled2" : 1,
"BTTOrder" : 1
},
{
"BTTActionCategory" : 0,
"BTTIsPureAction" : true,
"BTTPredefinedActionType" : 333,
"BTTPredefinedActionName" : "Else",
"BTTEnabled2" : 1,
"BTTOrder" : 2
},
{
"BTTActionCategory" : 0,
"BTTIsPureAction" : true,
"BTTPredefinedActionType" : 10,
"BTTPredefinedActionName" : "Open Finder",
"BTTEnabled2" : 1,
"BTTOrder" : 3
},
{
"BTTActionCategory" : 0,
"BTTIsPureAction" : true,
"BTTPredefinedActionType" : 334,
"BTTPredefinedActionName" : "END If Condition",
"BTTEnabled2" : 1,
"BTTOrder" : 4
}
]