Paths to Mounted Volumes on OSX

Jeanne A. E. DeVoto jeanne at
Tue Sep 17 00:39:01 EDT 2002

At 12:47 PM -0700 9/16/2002, Sannyasin Sivakatirswami wrote:
>I may have to throw in the towel on this one and test for the "Mac
>Platform"  --  hope not...but if forced to,  presumably a simple test
>to find a unix file at root which certainly will not exist on OS9
>should suffice, then, if OSX prefix all paths to fiiles on remote
>volumes with "/Volumes/" by script.

If it helps, here's a function to test for OS X-hood:

function isOSX
  -- Mac OS system versions are of the form "x.y.z"
  -- OS X system versions are "10.x.x"
  set the itemDelimiter to "."
  if the platform is "MacOS" \
     and item 1 of the systemVersion >= 10 \
     then return true
  else return false
end isOSX

Jeanne A. E. DeVoto ~ jeanne at
Runtime Revolution Limited - The Solution for Software Development

More information about the Use-livecode mailing list