0
Getting Windows username using InDesign Javascript
Engaged
,
/t5/indesign-discussions/getting-windows-username-using-indesign-javascript/td-p/1170927
Feb 22, 2009
Feb 22, 2009
Copy link to clipboard
Copied
Hi all,
Any give me the suggestion about to get the username in windows by using the javascript. Here i'm using the InDesign CS3.
Any give me the suggestion about to get the username in windows by using the javascript. Here i'm using the InDesign CS3.
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Valorous Hero
,
/t5/indesign-discussions/getting-windows-username-using-indesign-javascript/m-p/1170928#M383403
Feb 23, 2009
Feb 23, 2009
Copy link to clipboard
Copied
$.getenv("USERNAME");
or
var username = ((Folder.temp + "").slice (12,-14))
or
var username = ((Folder.temp + "").slice (12,-14))
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
LATEST
/t5/indesign-discussions/getting-windows-username-using-indesign-javascript/m-p/1170930#M383405
Feb 23, 2009
Feb 23, 2009
Copy link to clipboard
Copied
Kasyan_Servetsky@adobeforums.com wrote:
> $.getenv("USERNAME");
It's $.getenv('USER') in Unix/OSX-land.
-X
> $.getenv("USERNAME");
It's $.getenv('USER') in Unix/OSX-land.
-X
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
கற_பன___Imagine_
AUTHOR
Engaged
,
/t5/indesign-discussions/getting-windows-username-using-indesign-javascript/m-p/1170929#M383404
Feb 23, 2009
Feb 23, 2009
Copy link to clipboard
Copied
Thanks a lot Kasyan
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

