Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by ArcRaj
Mon, 29 Dec 2008 11:18
Current User Name
Author: ArcRaj
Date: Mon, 29 Dec 2008 11:18
Date: Mon, 29 Dec 2008 11:18
9 lines
644 bytes
644 bytes
Dear All, How to get the current logged user name using InDesign Javascript? Pl. help. Thanks, ArcRaj
Re: Current User Name
Author: Martin Fischer
Date: Mon, 29 Dec 2008 11:54
Date: Mon, 29 Dec 2008 11:54
19 lines
901 bytes
901 bytes
Hi ARcRaj,
try this:
var myString = 'Hallo InDesign ' + app.version + ', I am ' + getUser() + '.';
alert ( myString );
function getUser() {
var myUser = ($.os.substring(0, 7)=="Windows")
? $.getenv("USERNAME")
: $.getenv("USER");
return myUser;
}
Martin
Re: Current User Name
Author: ArcRaj
Date: Tue, 30 Dec 2008 07:47
Date: Tue, 30 Dec 2008 07:47
3 lines
618 bytes
618 bytes
Thank you very much Martin, it's working fine. ArcRaj
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads