Search
 
SCRIPT & CODE EXAMPLE
 

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 );
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript firebase kicks out current user 
Javascript :: nested ternaries react 
Javascript :: password parsley 
Javascript :: finalGrade % 5 && <38 
Javascript :: how to get the index of an object inside of a map js 
Javascript :: javascript etaretot 
Javascript :: Vuex body skeleton 
Javascript :: how to add datepicker in appended input 
Javascript :: use ES6 import syntax when you enhance the script tag 
Javascript :: how to do multiple pages in angular 
Javascript :: Javascript Ternary operator | Light/Dark Theme 
Javascript :: array.includes is not a function react 
Javascript :: md5 online decrypt 
Javascript :: shorten req.body. function 
Javascript :: discord.js message edit 
Javascript :: javascript call function from event handler es6 
Javascript :: child to perent data transfer in angular 
Javascript :: Keyframe Overshoot 
Javascript :: jsx expressions 
Javascript :: npm install error `not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:` 
Javascript :: fetch Mongodb find() results with Backbone 
Javascript :: destructuring function nested parameters 
Javascript :: js set height of element 
Javascript :: how to turn a time into a word js 
Javascript :: js template literal avoid white spaces 
Javascript :: Babel, env src decrypt, React into javascript in background 
Javascript :: react native uncaught error main has not been registered stackoverflow 
Javascript :: how to prevent screen tearing without vsync 
Javascript :: sum, rest, ..., ...args 
Javascript :: cocos creator localstorage 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =