Is there any way to get windows environment variables like %USERNAME% with javascript?

is there any way to get windows environment variables like %USERNAME% with javascript using Adobe 10 pro?

There is a fair amount of Acrobat JavaScript and Acrobat knowledge need to sort all of this out.
The identity object holds a lot of sedative information. First, upon installation of Acrobat, only the login name is available in the identity object and the end user of the application needs to complete the "Name", "email" and "Organization Name" in the application's preferences. These are the only fields that are available to Acrobat JavaScript identity object as corporation, email, loginName, and name.
Using the instructions in The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript) you can run the following script in the JS console to see the items of the identity object:
for(i in identity) {
console.println(i +": " + identity[i]);
and the following will appear in the console:
loginName: georgeK
name: George Kaiser
corporation: Example
email: [email protected]
true
The documentation states you need to use a trusted function to access this data, but you can access it at startup of Acrobat/Reader and add the properties of the identity object to an array:
// application variable to hold the properties of the identity object
var MyIdentity = new Array();
// loop through the properties of the identity object
for (i in identity) {
// place each property of the identity object into an element of the same name in the Identity array
MyIdentity[i] = identity[i];
console.println(i +": " + MyIdentity[i])
You access the items with:
var loginUser = MyIdentity[loginName];  // get the loginName property
In the user application level JavaScript file. See Acrobat Help / User JavaScript Changes for 10.1.1 (Acrobat | Reader) for the location of the application level folder you need to use.
I would change the name of the array used in this post so an untrusted user cannot get to your data. Some of this data can be used in hacking into a user's system.

Similar Messages

  • Is there any way to get hold of the NT username/loginID inside a JSP or servlet?

    Is there any way to get hold of the NT username/loginID inside a JSP or
              servlet? Any way to do this with Weblogic 6.0?
              Sincerely,
              - Oystein Saebo -
              

    Hmmm.. have a look at JAAS? It has a sample for NT authentication and/or
              authorization.
              Oystein Saebo wrote:
              > Is there any way to get hold of the NT username/loginID inside a JSP or
              > servlet? Any way to do this with Weblogic 6.0?
              >
              > Sincerely,
              >
              > - Oystein Saebo -
              

  • Is there any way to get a iphone that is not with a specific carrier or unlock my iPhone

    i need help asap

    If you have a Sprint iPhone, it can not be used with any carrier other than Sprint in the US. Sprint will unlock the SIM slot on a 4S for customers in good standing for international roaming, but that's it.
    Unlocked iPhones are GSM only. The only supported GSM carrier in the US is AT&T. Unless you plan to travel overseas extensively, just get a phone with whatever carrier you want to switch to. Unlocked iPhone 5's are not available yet in the US.

  • I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book

    I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.

    If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Is there any way to get rid of this stupid feature in iTunes for Windows? You've subscribed to a podcast but have more than five unplayed episodes. iTunes will stop automatically downloading newer episodes.

    s there any way to get rid of this stupid feature in iTunes for Windows?
    You've subscribed to a podcast but have more than five unplayed episodes. iTunes will stop automatically downloading newer episodes. You may get the following message: 
    iTunes has stopped updating this podcast because you have not listened to any episodes recently. Would you like to resume updating this podcast?
    You can click Yes to continue downloading additional episodes. Or you can just listen to any part of any episode and a new episode will download at the next update.

    I believe that feature was added in order to reduce wasted costs to the Podcaster.
    Podcasts incur costs - that have to be paid for, by someone. That cost will be the cost of hosting the Podcast on a server somewhere and more crucially (with regard to your point), the cost of the Podcast being downloaded to your computer. Every download costs the Podcaster money (typically, charged by bytes downloaded).
    If that Podcaster pays for the whole thing personally, obviously they want to keep down any unnecessary cost to themselves. If the Podcaster is earning money for his or her Podcast (typically from advertising within the programme) then obviously, the advertiser only wants to pay for advertisements heard by listeners. So a download, not heard by the downloader, is waste of the Podcaster's money or no payment from the advertiser.
    My own experience is that I only have to resume downloading once per programme. I'm usually several episodes behind on two different Podcasts that I follow, but I do not recall having to repeat the resume Podcast after that first time.

  • Recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.  Is there any way to get the original song back, or, at least, re-purchase it?... I tried t

    recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.
    Is there any way to get the original song back, or, at least, re-purchase it?... I tried to do the latter, (It's still available in the itunes store) but, when I clicked on the buy link, I was informed that I had already bought it and was only given the option to, either, copy the link or send it to Facebook/Twitter
    I also, inadvertently, deleted a couple of default playlists (Notably recently added) while attempting to get the song back.
    Can someone out there, please, help me out. with the solution(s). (preferably step by step if possible, as I'm a bit of a Homer Simpson when it comes to this sort of thing) .. Doh!! :-(

    Hello, MrKite549. 
    Here is an article that will walk you through download any past purchases that are missing from your iTunes library. 
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Cheers,
    Jason H. 

  • Is there any way of getting Facetime to work with windows?

    I've just used Facetime for the first time and it worked like a dream. Is there any way Facetime can be used to phone someone with a PC using
    Windows?

    No, FaceTime uses a proprietary communications protocol that is incapatable with Windows.
    Allan

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • I had 41 tabs open in about six groups over the last year and a half and I just close them and exited Firefox. Is there any way to get them back?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/856718]]</blockquote>
    I had 41 tabs open in about six groups over the last year and a half and I just close them and exited Firefox. Is there any way to get them back?
    Also, is there any way to save a group or an open session and then restore it later?

    History menu, if it was destroyed in the last session
    then use "Restore Previous session:" and then restore all windows also from the history menu.
    If done in this session try the restore all windows under the history menu.

  • Is there any way to get 720x576 (ie DV Pal)  from iphoto slideshow?

    I have tried the iphoto forum and have been directed here. Is there any way to get 720x576 (ie DV Pal) for an export from iphoto slideshow? I want to export 200+ photos with random transitions and the ken burns effect. Imovie offers offers automatic ken burns effect via project properties but I can't find a way to add random transitions automaticcally. Is it possible? I want to add the exported file to a movie in Final Cut Studio. Normally I have to resort to using adobe photoshop elements 5 and premiere elements 3 on my bootcamp partition. I would love to do this all in Mac OSX - since leaving Windows, this is the only thing that forces me to use that lousy operating system!
    Thanks in advance for any help.

    I have tried the iphoto forum and have been directed here. Is there any way to get 720x576 (ie DV Pal) for an export from iphoto slideshow?
    Not directly. But you can do it with a bit of external help. Create a slideshow project in iPhoto using the "Random" transitions and auto KBE you want. Then export the slideshow as a 640x480 MPEG4/AAC 30 fps full motion MOV file. Drop the file to MPEG Steamclip and select the "Export to DV" File menu option. The select the DV format, PAL standard, and aspect you want. (I would normally select the "Frame Blending" option in the main menu when going from 30 fps to 25 fps.)

  • I have a Macbook Pro june 2011... I have 8GB ram but I only have 256mb VRAM... I've read some other questions about this and I realized... Why do I not have 560mb of VRAM since I have 8GB of RAM? Is there any way to get more VRAM to play games on steam?

    I have a Macbook Pro june 2011... I have 8GB ram but I only have 256mb VRAM...
    I've read some other questions about this and I realized... Why do I not have 560mb of VRAM since I have 8GB of RAM?
    Is there any way to get more VRAM to play games on steam?
    I've learned  by reading other topics that I can't upgrade my graphics card on my Macbook Pro because it's soldered into the motherboard or somthing like that, but please tell me if there is any way to get more video ram by chaning some setting or upgrading something else. I'd also like to know why I only have 256MB of VRAM when I have 8GB of RAM, since I have 8GB of RAM I thought I was supposed to have 560mb of VRAM...
    So the two questions are...
    Is there any way to upgrade my VRAM, so that I can play games on steam?
    Why do I only have 256MB VRAM when I have 8GB total RAM?
    Other Info:
    I have a quad core i7 Processor.
    My graphcics card is the AMD Radeon HD 6490M.
    I am also trying to play games on my BOOTCAMPed side of my mac, or my Windows 7 Professional side.
    THANK YOU SO MUCH IF YOU CAN REPLY,
    Dylan

    The only two items that a user can change on a MBP are the RAM and HDD (Retinas not included).  You have what the unit came with and the only way you will be able to change that is to purchase a MBP with superior graphics
    If you are very much into gaming, the I suggest A PC.  They are far superior for that type of application to a MBP.
    Ciao.

  • My iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?

    my iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?
    also since the update it keeps resetting itself? i had a lot of stuff on there that i really wanted and alot of important info lost? please help!!

    You might be able to remove the recent backup from the backups folder and the old one should be usable at that point
    USE EXTREAME CAUTION WHEN ACCESS THE FILES AND DO NOT DELETE ANYTHING
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Note: The "~" represents your Home folder. If you don't see Library in your home folder, Option-click the Go menu.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom

    Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom?
    I am using Cloud InDesign CS6 on Windows 7.

    You will need to go via your computer's iTunes - to get music into the Music app you either need to download it directly on the iPad from the iTunes store app, or sync it from your computer's iTunes

  • HT4757 Will this software make my Canon Powershot A700 work with os x 10.8.2 and iPhoto 11 v. 9.4.1?  Is there any way to get my camera compatible with this computer?

    Will this software make my Canon Powershot A700 work with os x 10.8.2 and iPhoto 11 v. 9.4.1?  Is there any way to get my camera compatible with this computer?

    First Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If that doesn't help apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • Had to crash my computer. Lost my recovery key. Have my iphone paired with previous install. is there any way to get the data back?

    In order to upgrade my computer from Windows xp to Windows 7, I lost access to firefox without thinking to generate a recovery key. Is there any way to get my data back?

    If the only thing you have paired to the account is an iPhone the answer is that unfortunately no. The iPhone client (Firefox Home) is just a "consumer" of the Sync data and can't do much.
    My best advice is to keep the iPhone synced to have access to bookmarks and manually transfer them to your new profile.
    Sorry to be the carrier of the bad news.

Maybe you are looking for

  • How do i get my music back after reset

    my I pod side it was corrupt needed to be reset so I reset it now I can't reload the music back on it

  • How do I uninstall adobe reader from my iPad 4?

    I can only preview first page of documents on a website that says I should be able to open them in adobe reader. how can I fix this? Do I need to uninstall adobe reader and reinstall? How is that done on an iPad? I did update the reader, turn off iPa

  • Iphoto shows loading photos for a book, but loading does not complete

    Hi all, I'm hoping someone can help me. I have put together 5 books in Iphoto, and today selected about 60 photos to create a new book. I selected the photos and clicked on "add to" at the bottom of the screen. I then selected "book" and from there "

  • Getting Page count with AppleScript

    Hi Everyone, It been a long time since I visited so I hope everyone is well. Does anyone know how to get the page count of a document with Applescript. The best I've done is to divide the total number of words by the average amount of words on a page

  • Exporting for iDVD - time limits or quality settings

    can anyone recommend export settings for 4:3 PAL in DV quality, for using iDVD to burn to disc? NOTE: the project is 2hrs 6mins long - will this matter in iDVD? thanks