Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get computer name in javascript in adobe livecycle designer

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 );
Source by community.adobe.com #
 
PREVIOUS NEXT
Tagged: #computer #javascript #adobe #livecycle #designer
ADD COMMENT
Topic
Name
3+1 =