If Im running a batch processing script in my second account because and don’t want my GUI interupted by the process. Is it possible to have the script display a dialog on error or finnished in the formost account. Putting a delay at the start lets me use fast user switching but no way other than switching back to check on progress. I would have thought something in system events but have found nothing that works so far.
Hi Mark,
maybe you can start the script from your main account with Remote Apple Events
Hi
i’m sure you can’t display a dialog across remote machines so i guess it would be the same for user accounts.
what about adding code which emails you on error or when its finished. if you don’t want mail to activate then you could use a scripting addition
like xmail.
just an idea!!
The only method that works but is a tad more abrupt than I had wished for was tell system events to sleep this just shuts down the monitor on the accounts. Don’t really want additional email accounts etc. Remote events may be the ticket.
In principle, enable remote Apple events and target your ‘display dialog’ command at a process in your primary account, either by pid or by name+uid.
In practice, it may be a bit more fiddly since Apple event IPC tends to be a bit stupid around multiple users, but I’ll let you have a go at it first and if you get stuck then post back.