Hi,
I can test if a known process is loaded this way
tell application "System Events" to set flag to (exists first UI element of process "my_process_name")
I can repeat the test during the boot process to get when a known process is loaded successfully this way:
tell application "System Events"
repeat until (exists first UI element of process "my_process_name") is true
delay 0.2
end repeat
end tell
So, if I have the list of all login and menubar items on a given machine, I could test for all of them.
I have two questions:
- Is there a simpler way (without individual item testing) of telling when a Mac of [b]known[/b] configuration has rebooted and loaded all login and menubar items successfully?
- Is there a way of telling when a Mac of [b]unknown[/b] configuration has rebooted and loaded all login and menubar items successfully?
Basically, a way to tell when a startup or reboot has completed successfully, without any error.