Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like to know how to use AppleScript to write a script that automatically ejects a disk image whenever the user logs out of their account.

This script would be the complementary inverse to a login item I have setup wherein a specific disk image is mounted upon login.

Because the disk image to be unmounted will be the same one every time, a script that simply uses the path to the image to accomplish the task will be fine (as opposed to a script that would scan for and unmount any mounted images found).

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.