|
|
#1 |
|
Prospect
Join Date: Dec 2006
Location: India(pune)
Posts: 48
|
How to detect programmatically that Audio CD is inserted in CD Drive on macintosh?
__________________
Regards.. @mit..
|
|
|
|
|
|
#2 |
|
Major Leaguer
Join Date: Dec 2007
Location: Oceania
Posts: 395
|
iTunes has a preference that can take care of this ...
![]() Most audio players will do this AFAIK. |
|
|
|
|
|
#3 |
|
Major Leaguer
Join Date: May 2006
Location: Paris, France
Posts: 311
|
I just did that two days ago.
Send me your email by pm and I will send you the piece of code on thursday. If you need it before, look for a code sample published by Apple. It has most of the code needed. I don't recall the name, but that should be easy to find. |
|
|
|
|
|
#4 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Jan 2002
Posts: 3,541
|
How do you think this answers his question?
__________________
COMPUTER TYPE SOME SPECIFICATIONS I COPIED FROM THE BOX STUFF I INSTALLED ALL BY MYSELF "WITTY QUOTE" |
|||||||||||||||||||||||
|
|
|
|
|
#5 |
|
All Star
Join Date: Mar 2006
Location: Littleton, Colorado, USA
Posts: 506
|
You didn't mention what programming you are using, but all mounted drives get an alias put in the /Volumes folder - you could periodically check the folder or use a folder action script.
|
|
|
|
|
|
#6 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Jan 2002
Posts: 3,541
|
He'd have to install a folder action script, and have the user enable it for a folder the user can't normally see. What if his application is a GUI-less application that runs when there is no user logged into the GUI? (And as such, the Finder won't be running.) ![]() Anyway, there are ways to be notified when a device is mounted than continual polling. See: http://developer.apple.com/documenta...00391-BCIIDEAI As you say, however, not knowing the programming environment, we can't point anyone in the right direction. It'd be interesting to know the higher-level goal.
__________________
COMPUTER TYPE SOME SPECIFICATIONS I COPIED FROM THE BOX STUFF I INSTALLED ALL BY MYSELF "WITTY QUOTE" |
|||||||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|