OT - getting the computer's name under OSX

James.Cass at sealedair.com James.Cass at sealedair.com
Fri Sep 17 13:33:31 EDT 2004


Flexi -

"put $USERNAME && $COMPUTERNAME" doesn't work for me in MacOSX 10.3.5 
Panther.  I can do "put $USER" ($USER is in the Variable Watcher list). 
Looks like the "function ComputerName" may be the tightest cross-platform 
way to get the host.

-James





FlexibleLearning at aol.com
Sent by: use-revolution-bounces at lists.runrev.com
09/17/04 01:14 PM
Please respond to How to use Revolution
 
        To:     use-revolution at lists.runrev.com
        cc: 
        Subject:        Re: OT - getting the computer's name under OSX




Er... "put $USERNAME && $COMPUTERNAME"? Or is this not OSX  compatible?

/H


> Now that I'm thinking about it, there's a much easier  way:
>
> function ComputerName
>   set the itemDel  to ":"
>   return (item 1 of the address)
> end  ComputerName



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


More information about the use-livecode mailing list