Cross posted on Apple Stack Exchange
I am trying to execute a script when a server becomes available (a bit like when the OS detect the presence of a time capsule device and it starts the backup.) I didn't find a simple way to attach an applescript to an system event. Is there a way?
I am not looking for anything that requires a compiler. I am simply looking at attaching to an OS event (a bit like "Folder Actions" I guess, but for a server.)
I asked the question in stackoverflow, but as I this place is more appropriate.