Thanks Richard! 

hence the little utility function for shell file path processing
in xos...

-- looks overkill but it's written to handle defaults first
-- and handle user os naming requests in a general environment.
-- I know there's many ways of turning this function in or
-- out, it's just a way to script safely for all occasions!
-- i think the switch op should be the fastest handling in this
-- case. It's just not a frequent function.
-- From the xos language notes.

function OSFileDelimiter os
  if os is empty then put the platform into os
  switch os
  case "macos"
  case "mac"
  case "osx"
  case "macintosh"
  case "apple"
    return ":"
  case "win32"
  case "win"
  case "dos"
  case "winxp"
  case "w2k"
  case "w2k3"
    return "\"
  end switch
  -- default
  return "/"
end OSFileDelimiter

cheers
Xavier

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Richard Gaskin
> Sent: Saturday, March 05, 2005 08:30
> To: How to use Revolution
> Subject: Re: OS delimiter question
> 
> MisterX wrote:
> > all unixes use the "/" ?
> > 
> > and if osx's path delimiter is still ":" or has it gone to 
> slash form?
> 
> The Finder lets me make a folder named "4/4/44", but not one 
> named "4:4:44"
> 
> --
>   Richard Gaskin
>   Fourth World Media Corporation
>   Developer of WebMerge: Publish any database on any Web site
>   ___________________________________________________________
>   [EMAIL PROTECTED]       http://www.FourthWorld.com
> _______________________________________________
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to