Here’s a handy little AppleScript that opens GP4 and iterates through the instances you wish to open with it. Of course, adjust your delay times as needed and change Instance names to match.
Enjoy!
tell application "GigPerformer4" to activate
delay 5 -- Initial delay after activation
-- Define a list of the menu items to iterate through
set menuItems to {"Sprang", "Choir", "Great", "Swell", "Pedal"}
-- Loop through each menu item in the list
repeat with menuItem in menuItems
tell application "System Events"
tell process "GigPerformer4"
-- Ensure GigPerformer4 is the frontmost application
set frontmost to true
delay 0.75 -- Give some time for the application to respond
-- Navigate to the "File" menu and then to the "Open Existing Instance" submenu
tell menu bar 1
tell menu bar item "File"
tell menu "File"
-- Click "Open Existing Instance" to open its submenu
click menu item "Open Existing Instance"
end tell
end tell
delay 0.25 -- Adjust this delay as needed to ensure the submenu has time to appear
-- Directly click the menuItem within the opened submenu of "Open Existing Instance"
tell menu item "Open Existing Instance" of menu "File"
tell menu "Open Existing Instance"
click menu item menuItem
end tell
end tell
end tell
end tell
end tell
end repeat