Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting Windows username using InDesign Javascript

Engaged ,
Feb 22, 2009 Feb 22, 2009
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.
TOPICS
Scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 23, 2009 Feb 23, 2009
$.getenv("USERNAME");
or
var username = ((Folder.temp + "").slice (12,-14))
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2009 Feb 23, 2009
LATEST
Kasyan_Servetsky@adobeforums.com wrote:
> $.getenv("USERNAME");

It's $.getenv('USER') in Unix/OSX-land.

-X
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 23, 2009 Feb 23, 2009
Thanks a lot Kasyan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines