Me again,
After some googling and experimenting I found that it would be best to split my one huge script into several pieces so that the UI doesn’t stop responding when a background task is doing its thing. I now have a small script that runs in the menu bar and I have another script that runs via LaunchDaemon without UI that does its thing and stores the information that matters in a plist file.
I would like the ASOC script that runs via LaunchDaemon to be able to “kick” the Menu Bar ASOC script and tell it to do something, like read the plist created by the other script and act on it. Or I would like to find an efficient way for the already running Menu Bar script to look for changes in the plist and then do something.
Is this even possible? If so, who would I go and “kick” the menu Bar script? And if it’s not possible, what options do I have to check regularly (like every other second) for changes without my Mac telling that my script “is defined to be constantly running and is inherently inefficient”.
Again, sorry of these beginner questions and I really appreciate the help that I got already from members of this forum, namely Shane and Stefan.
Thanks,
Dirk