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.

link|improve this question
You should have petitioned a moderator for migration of your question here, then. – Daniel Beck Jun 21 '11 at 6:45
1  
What do you mean exactly by "server becomes available"? – slhck Jun 21 '11 at 7:17
daniel, i didn't know the process. thanks for the info. – machunter Jun 21 '11 at 10:56
slhck, actually when I say server I really mean a shared disk on a server being available: i move from location to location so i would like the machine to mount the share when it is available. – machunter Jun 21 '11 at 11:04
machunter you'll need to prefix @ to the person you're replying to, else they won't get the notification. /cc @slhck – Sathya Jun 21 '11 at 14:48
feedback

closed as too localized by Sathya Jun 21 '11 at 14:48

This question is unlikely to ever help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. See the FAQ for guidance on how to improve it.

Browse other questions tagged or ask your own question.