notahat / midi_patchbay

Hook up MIDI software and hardware and pass MIDI data between them, applying assorted filters on the way.
226 stars 54 forks source link

Start minimized or with default setting? #14

Open Coupe70 opened 3 years ago

Coupe70 commented 3 years ago

Hello,

first of all: I'm a Windows guy, so maybe I just missed some simple Mac stuff.

Is there a possibility to a) start MIDI Patchbay with the last active configuration instead of empty or define a default config to be loaded on start? or b) start MIDI Patchbay minimized when I doubleclick a config file?

Background: I try to establish the always same config on Mac startup. Only chance I see is to put the config file in "autostart", but this way the MIDI Patchbay window opens on desktop.

Rick

XENONChromatic commented 3 years ago

You should be able to do either of these with a bit of Applescript.

Not baked into the app itself, but relatively straightforward.

Beennnn commented 1 year ago

Works for me with the following script.

tell application "MIDI Patchbay" to activate
tell application "System Events" to tell process "MIDI Patchbay"
    click menu item "Close" of menu 1 of menu bar item "File" of menu bar 1
end tell
tell application "MIDI Patchbay"
    open file "MacIntosh HD:Users:me:Documents:Config_MIDI_PatchBay.mpb"
end tell