Hi Guys,
I’m currently working on a script that needs to detect if a cd is inserted in the cd rom and get the name of the cd inserted.
Is this possible with applescript? if so, how?
Thanks,
Benson
Hi Guys,
I’m currently working on a script that needs to detect if a cd is inserted in the cd rom and get the name of the cd inserted.
Is this possible with applescript? if so, how?
Thanks,
Benson
Hi,
not really. I wrote a small Foundation Tool CLI to do that
You can get it here: discName
Place it wherever you want and call it with
do shell script "/path/to/discName 1"
the number (1) ist the number of the disc drive. If there is only one, you can omit the number.
It returns the name of the disc or “No media inserted”