Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote an AppleScript to mount a bundled sparse disk image. I want this script to be executed exactly when Time Machine launches.

I can check if Time Machine is running with on idle statement,

on idle
    return <interval>
end idle

but I'm pretty sure, it isn't a robust way to do that.

IMO making an event trigger for Application Launch event would be a better approach.

I appreciate if someone can help me.

share|improve this question
up vote 3 down vote accepted

You can use a LaunchAgent (see Lingon) to perform an action when a file is modified. Time Machine has some file somewhere that it modifies each time it starts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.