ScriptUI get the path to the indesign installation directory

Does anyone know if there is a way to get a path of the users to their installation directory?

I have the script, which creates a new menu in Indesign startup item.  the menu item is clicked, it opens another script.

Right now, I have the path to the second script hardcoded, which works very well:

C:\Program Files (x 86) \Adobe\Adobe InDesign CS5.5\Scripts\Scripts Panel\DM_Core\DM_RemoveMenu.vbs

but now I have to give it to other users, and I need to know if there is a way to get the installation path they have to their indesign.

In the end, what I get is:

C:\Program Files (x 86) \Adobe\Adobe InDesign CS5.5\Scripts

I tried scriptsFolder but that takes me to the right place.

Anyone has any ideas.

Thank you

This should help you to what you want:

function GetScriptsFolder (){
          var scriptsFolder = null;
          do{
          // On Mac this is a folder inside the app package
                    var appFolder = Folder.startup;
                    if (! appFolder.exists){break;}
                    scriptsFolder = Folder(appFolder + "/Scripts");
                    while (appFolder.exists && ! scriptsFolder.exists){
                              appFolder = appFolder.parent;
                              scriptsFolder = Folder(appFolder + "/Scripts");
                    }
                    if (! scriptsFolder.exists){
                              scriptsFolder = null;
                              break;
                    }
          }
          while (false);
          return scriptsFolder;
}

Substances

Tags: InDesign

Similar Questions

  • How can I get the Acrobat installation directory?

    The method using could SDK I get the Acrobat installation directory?

    I found the method for unix, but not for windows.

    Thank you!

    To do this use of standard operating system calls... (for example. Search in the registry).

    Leonard

  • where can I get the latest installer offline in Photoshop?

    where can I get the latest installer offline in Photoshop?

    Hi Indx.abhi,

    Offline Installer do you mean the last version of the standalone product? If so, it would be Photoshop CS6, which is available for purchase by phone. Please see this link for more information: Creative Cloud now includes Creative Suite Master Collection and features of Design Premium.

    If you have already bought Photoshop and are looking for downloadable installation media, please visit: download Creative Suite 6 applications.

    If this isn't answering your question, please let us know in more detail what you are looking for and we will do our best to help.

    Best,

    Del

  • How can I get the InDesign startup window go away when no documents are open so I can see my office? Other then having to click on the red button at the top left.

    How can I get the InDesign startup window go away when no documents are open so I can see my office? Other then having to click on the red button at the top left.

    Hello Janet,.

    Your problem could be solved if you turn off YOUR Application framework in the window Menu.

    Go to window-> part of the Application.

    Kind regards

    Aditi Simard

  • How tio changes the programs installation directory, I want to install?

    How tio changes the programs installation directory, I want to install? I'm trying to install a lot of programs is always installed in "Local disk C" that low memory space. Please tell me how can I install the programs in other folders such as "Local disk D and E and F. And also please tell me that the directory in which the widows is installed when reached about his memory limit, does windows performance issues.

    Win needs 15% free space for proper operation.

    Using various hacks registry posted on various sites to redirect the default program installation folder to another drive is not supported by MS and can cause problems.

    Most of the programs when you install them have the option for a custom install, where you can specify where / which drive to install, but not all programs have this option. Even if you install a separate drive various files/folders will be written on victory drive.

    If the drives D, E & F are separate partitions of a disk, you will need to modify/extend partition in win

  • How can I change the lightroom installation directory

    The default installation directory has changed and has been a success for my installation of Photoshop CC 2014, but the repertoire of Lightroom remains as default directory.

    How can this be changed?

    After speaking with a service representative customer, it is confirmed that this is normal and there is no intention to change this.

    It is a big barrier for those who have tiny disks.  There are many people who have tiny disks that store only the operating system.  There is no room for additional programs.

  • How to get the extension installation path?

    Hello

    This is the right forum to see if the CEP for Photoshop CC extensions 2014? If not, please be kind enough to point me to the correct forum.

    If so, how can I get the full path to the Directory installed extension?

    for example: C:\Program Files (x 86) \Common Files\Adobe\CEP\extensions\com.example.extension

    I tried to get ExtendScript using Folder.commonFiles and adding the rest of the way.

    But it gives C:\Program Files\Common Files, even if our extension is in C:\Program Files (x 86) \Common Files.

    Thank you!

    Use CSInterface. There are several constants that have different paths associated with them:

    CEP-resources/CSInterface.js to master · Adobe-CEP/CEP-Resources · GitHub

  • My Windows Installer does not work. Msg I get: the Windows Installer Service could not be accessed.

    Can't install or uninstall I get this msg.  The Windows Installer Service could not be accessed.  This can occur if Windows Installer is not installed properly. Contact your support team. HELP please.

    Hello Monica and DuaneWolfe,.
     

    Thanks for posting in the Microsoft Community. I understand that the Windows Installer does not work on the computer windows vista. I also noticed that there is another thread of yours, with the same question, and the thread was answered by Yaqub K August 30, 2012.
    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information on how to to back up and restore the registry,

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    I suggest you to consult the help article mentioned in this thread and let us know the status of the issue.


    Please avoid creating threads in duplicate on the same issue. You can reply to this thread if you need help and I'll be more than happy to help you.
  • ScriptUI: get the dimensions of the container using the automatic formatting?

    No there is no way to get the dimensions of a ScriptUI container that uses the automatic formatting?  What container root (Panel or window)?  I'm writing a presentation for a group and I would like to react to the dimensions of the window or Panel, as it is resized, but it seems that this info is still not defined when the automatic formatting is used for containers of the ancestor.  No there is no way to know what size of the containers of the ancestor is without write handlers of layout custom for each of them?

    I think that it is either

    .size
    

    or

    .bounds
    

    which returns the values.

  • What to do when we lost the CD to get the Indesigns product again?

    We have lost our CD of Indesign when we moved into our new offices and computer broke down! We have the productkey!

    How to get the new CD?

    Download the CS6 products

    Mylenium

  • Get the application Installation files

    Hello together,

    first: sorry for my bad English

    I need to install some applications Adobe Creative cloud on clients without internet connection.

    Is it possible to get the installation files from apps without the Launcher?

    I ve got another client where I can download the files that I can copy with usb to the other client.

    I can not find the setupfiles in the temporary directory, but these files are corrupted.

    Can someone help me?

    Thank you!

    Hi ChristopherHahlbeck,

    An Internet connection is required the first time you install and your applications of office of license, but you can use applications offline with a valid license. Desktop applications will try to validate your software licenses every 30 days.

    However you can download apps direct download CC, copy it to an external drive and install it on another machine. Please note that the internet connection is required to activate the software.

    Links: http://prodesigntools.com/adobe-cc-direct-download-links.html .

    Please follow the very important instructions before downloading.

    Kind regards

    Romit Sinha

  • Vista \Windows\system32\winload.exe is missing, how can I get the Windows installation disc?

    I have a HP Pavilion dv6500 Laptop, I'm trying to restore my system, but the system wants to use a Windows Setup from disk because my windows/system32/winload.exe could not be loaded"status: 0xc000000f Info: the selected entry could not be loaded because the application is missing or damaged. »

    The windows installation is located in the machine, and apparently the recovery has not copied as part of the recovery disk.  I tried to identify if a recvery kit was available and it seems that maybe not.  What must I do to fix this?

    Have you tried to type the F11 key immediately after switching on the laptop. This should start in the hard disk partition recovery.

    You should be able to order by phone recovery disks. If you are USA / Ca... 1-800-474-6836

  • If I can get the full installer to put it on a disc for an old lady?

    I know an old lady who can't put the software adobe reader on his computer because his computer crashes while downloading due to dial up.  Do you know if I can get the full version of put on a cd to send to him?

    Choose the one which suits him best here:

    FTP://FTP.Adobe.com/pub/Adobe/Reader/

  • Cannot change the default installation directory (missing ProgramFilesDir)

    I'm changing the default installation on my computer directory.  I looked at the number of threads here that cover the topic.  I go to regedit and follow this path: 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion' but I can't find the value 'ProgramFilesDir.' "  It's on Windows 7, 64-bit.

    Your much more course using the option 'tailor-made' for each program you want to install. Most of the applications have this option. Change the system variable or the registry entry can cause other issues, you may not like.

    J W Stuart: http://www.pagestart.com

  • This is the message I get: "the file or directory C:\Documents and Settings\ALLUSE~1\APPLIC~1\Norton\{0C55C~1\NIS_17~1.127\IRON is damaged and unreadable. Please run the chkdsk utility. »

    Original title: this is the message I get:

    "The file or directory C:\Documents and Settings\ALLUSE~1\APPLIC~1\Norton\{0C55C~1\NIS_17~1.127\IRON is damaged and unreadable.  Please run the chkdsk utility. "When I type chkdsk/f to the command prompt it tells me that it cannot run while windows is open and asks if I want it to work when I reboot.  I say Yes and restart and nothing happens.  What I am doing wrong?

    Hello

    1. when exactly you get this error message?
    2. don't you make changes on the computer before this problem?

    Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

Maybe you are looking for