Topic: Applescript issue totalmix

Hi,

I am busy automating my setup using apple script. I run in an issue with totalmix though.

When I run the script that is at the bottom of this post it asks me to locate Totalmix. I get an overview of apps in the applications folder but Totalmix is not one of them. Is there maybe something that prevents totalmix to become visible?

MacOs 10.14.6. and TotalMix 1.60

Best, Hans.


tell application "System Events" to set the visible of every process to true

set white_list to {"Finder", "/Applications/Totalmix.app", "/Applications/Fireface Settings.app", "/Applications/Utilities/Script Editor.app"}

try
    tell application "Finder"
        set process_list to the name of every process whose visible is true
    end tell
    repeat with i from 1 to (number of items in process_list)
        set this_process to item i of the process_list
        if this_process is not in white_list then
            tell application this_process
                quit
            end tell
            repeat until application this_process is not running
                delay 1
            end repeat
        end if
        
    end repeat
on error
    tell the current application to display dialog "An error has occurred!" & return & "This script will now quit" buttons {"Quit"} default button 1 with icon 0
end try