I'm developing a standalone which samples audio from cd's and i'm having a hard time working out a nice way for the user to be able to eject the CD from within the app.
I searched and found this shell method in the archive:
echo %s | sudo diskutil eject '/Volumes/%s'
Where the first symbol is the root password and the second symbol the volume name.
I don't really want the user to have to enter their password just to eject a CD. Is there a method using applescript or something even more simple?
p.s. i don't have a clue about applescript so please go easy on me if you have an example.