if (File.fs == "Windows" ) {
var myUserName = $.getenv('username');
var mySysName = $.getenv('computername');
}
else if (File.fs == "Macintosh") {
var myUserName = $.getenv('USER');
var mySysName = app.doScript('do shell script "hostname"', ScriptLanguage.APPLESCRIPT_LANGUAGE);
}
$.writeln( myUserName +"
"+ mySysName );