We have a new Pioneer Blue-Ray/DVD optical drive that disappears - the Mac Pro 2009 quad loses track of the drive after a short period of time. One of the readers of the xlr8yourmac page, Lian, was kind enough to offer the script below that polls the drive every 28 seconds, which does work to keep the machine aware of the drive. However, this script, saved as a run only application, will not quit gracefully, requiring a forced quit. repeat do shell script "drutil info" delay 28 end repeat Could someone versed in applescript tell me how to modify this script so that it will quit on demand or when the system is shut down? Thanks in advance for the help.