getting the path of a DVD drive
Mark Schonewille
m.schonewille at economy-x-talk.com
Tue May 8 06:07:37 EDT 2012
Hi Tiemo,
Yes, /volumes is mandatory on all Macs. You can even use put shell("ls /volumes") to get all drives. /volumes/<drivename> is the right way to address a drive on Mac.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
We will have room for new projects after 1 June. Contact me now and be first in line.
On 8 mei 2012, at 11:46, Tiemo Hollmann TB wrote:
> Hello,
>
> if I want to read from a CD with a known label "foo" I just check if "foo"
> is in the drives to check if the CD is inserted.
>
> Then I add "/Volumes/" hard coded before "foo", so that I get the full path
> "/Volumes/foo/"
>
>
>
> What I would like to know is, if this name convention "/Volumes/." is
> mandatory on Mac or can the path name be different on other machines? If so,
> is there another reliable way to get the path of an inserted CD/DVD?
>
> Thanks
>
> Tiemo
More information about the use-livecode
mailing list