Accessibility and input into secure text field

Hi all

I have an Applescript which asks for the system password, then it loads the Cocktail tool and enters automatically the password into the secure text field of the authentication window and selects a couple of functions I want to execute.

I have manually entered the script into accessibility’s TCC.db (via the System Prefs / Security & Privacy).

When I run the script, it works exactly once and from then on it says “… is not allowed assistive access” although the script is still in the TCC.db and is checked as enabled.

What do I overlook? Has anyone a hint or tip to get over this problem?

Thanks in advance and regards
Lazybaer

Hi Lazybaer,

Just unbased guesses, but maybe you need to check SystemUIServer. Another guess might be that System Events is not running on the second run.

gl,
kel