
I havw created a simple start up script that whenever i run gives the error “Boot Up Script is not allowed assistive access.”
I have put it into the privacy & security/accessibility settings so im unsure what else needs to be done to get it working.
if relevant, the script is below and it errors at the window closing part:
delay 5
do shell script "open /Applications/lghub.app"
delay 1
do shell script "open /Applications/BetterTouchTool.app"
delay 1
do shell script "open /Applications/GetPlainText.app"
delay 8
tell application "System Events" to tell (the first process ¬
whose bundle identifier is "com.logi.ghub") to tell ¬
the front window to if (exists) then tell attribute ¬
"AXCloseButton" to click its value
delay 1
tell application "System Events" to tell (the first process ¬
whose bundle identifier is "com.skype.skype") to tell ¬
the front window to if (exists) then tell attribute ¬
"AXCloseButton" to click its value
return
end run