Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Mac OS forum

General discussion

help with applescript

by davlv-23312592593406480119344955673384 / January 17, 2010 9:31 AM PST

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 another forum page, 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.

Discussion is locked
You are posting a reply to: help with applescript
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: help with applescript
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!