Startup script to load shortcuts - in a Citrix environment

Let me offer a sample of what I have and ask if anyone knows how to fill in the gaps.
For starters, a listening script upon booting up InDesign:
#target InDesign
#targetengine session
//collect the name of current user
var userName = getUser();
function getUser() {
var myUser = ($.os.substring(0, 7)=="Windows")
  ? $.getenv("USERNAME")
  : $.getenv("USER");
return myUser;
// var startupScriptsFolder = "/z/Scripting/Startup scripts/";
var startupScriptsFolder = "/Applications/Adobe InDesign CC/Scripts/startup scripts/";
var startupScriptFiles = Folder(startupScriptsFolder).getFiles();
for (var i = 0; i < startupScriptFiles.length; i++) {
    app.doScript(startupScriptFiles[i]);
then the script itself:
#target InDesign
#targetengine session
//get or create folder for script preferences
var scriptPrefsFolderPath = "/Users/madmac55/Library/Preferences/Adobe InDesign/Version 9.0/en_US/InDesign Shortcut Sets/";
if (Folder(scriptPrefsFolderPath).exists == false) {
        Folder(scriptPrefsFolderPath).create();
var locationPrefsFilePath = scriptPrefsFolderPath + "/ MyShortcuts.indk";
This hasn't worked for me and it's a hacked solution at best.  So I am wondering how to get it all to click.  In a Citrix environment (windows), Adobe puts the preferences in a hidden folder path ~/AppData/Roaming/   and this is where it's tough to find them — on the server(s) you land on.
Because you land on an arbitrary server, you have to run the getUser statement first, then drill down inside.  I realize I have mixed paths of  Mac & PC, and I'm really writing abiout a PC environment, but paths are interchangeable.  It's the script that counts.

Hey Mac,
I'm not sure if this will work for you as I've only used it when making .bat files... but, in Windows, you can reference the folder directly by using the variable "%USERNAME%"
C:\Users\%USERNAME%\AppData\Roaming\Adobe\InDesign\Version 5.0\Scripts\Scripts Panel\
Hope it helps.

Similar Messages

  • I can't get Photoshop CS6 startup script to works ?

    Hi!
    I'm trying to get a script to execute each time photoshop cs6 is started. I've tried to put it in that folder ( Photoshop-CS6-Scripting-Guide.pdf page 10) C:\Program Files\Common Files\Adobe\Startup Scripts CS6\Adobe Photoshop but it doesn't start ... If I put it in there C:\Users\[USERNAME]\AppData\Roaming\Adobe\Bridge CS6\Startup Scripts it loads when I start BridgeCS6 but it fails as it's a script done for photoshop. So I try to put it in C:\Users\[USERNAME]\AppData\Roaming\Adobe\Photoshop CS6\Startup Scripts but didn't work as I was expecting ;o) .
    I don' think it matters but my OS is in french but photoshop is in english.
    So where is the proper place ?
    cheers

    Yes Startup Scripts is a Bridge thing.  If you open Bridge and use menu Edit>Preferences you will see Startup Scripts in the left pane if highlight that the right pane will contain a check box list of startup scripts you can enable.
    Photoshop has a script event manager. Script and action can be start automatically when an event occurs. They will not start if a a started event process has not finished nesting will not happen. So on an event like start application, new document, open document a script or action can be set to run.
    I never tried setting one up for start application but Photoshop ships with one named clean listener which could be useful. Find it in:
    presete\scripys\Event Scripts Only. And menu>File>Scripts>Scripts Event Manager

  • Missing startup script in bridge cc

    I have photoshop cc and bridge cc loaded on my computer. I also had CS6 on the same computer.  I deleted photoshop CS6 from my computer. When I try to open a file in bridge cc I get an errer message that cs6 cannot be found.  I checked my bridge cc startup scripts folder file and it is empty.  Has anyone had the same problem?

    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • 4.1EA2 - Startup script / serveroutput randomly stops

    I have a startup script that only contains the text "SET SERVEROUTPUT ON".  I've used this flawlessly in previous versions.  In this EA version, it randomly stops displaying the output.  If I quit SQL Developer and restart, it works again.  I haven't found any pattern to this other than I have multiple unshared worksheets open at a time, and switch between them frequently.
    Anyone else run into this or know of a workaround?

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • CS6 Bridge startup scripts, AGAIN!

    Had the same problem with CS5 and beta CS6, Bridge startup scripts won't load, meaning the outout pane is blank.
    Over the past 2 years, 2 different computers, 3 hd's, clean installs on all and I keep getting the same problem.
    This time, standard install on Lion 10.7.3 mac pro mid 2010 16gb RAM ssd, permissions repaired before/after install, diskwarrior run before install. Works fine on my laptop.
    Getting a bit frustrated with Adobe, same problem hasn't been sorted out in the past 2 years.
    There was a helpful post in the old CS6 forums for a cure, but surely we shouldn't have to do this Adobe, again?

    Might get a better response if you post in Bridge Script Forum  http://forums.adobe.com/community/bridge/bridge_scripting

  • Registry startup script for computer-based proxy configuration

    I am attempting to deploy computer-based proxy server settings via importing a .reg file to user PCs as a startup script. It has appeared to work on some PCs but not on others. We have a mix of Windows XP Professional x86 and Windows 7 Professional x64 PCs
    in our domain.
    I am not sure whether to use "reg import" or "regedit /s" in my batch script.
    Before trying the batch script method, using "Computer Configuration > Preferences > Registry" settings did not work.
    I have created a GPO, applied it to an OU containing computers and used the following settings:
    Computer Configuration > Policies > Windows Settings > Scripts > Startup
    Batch Script: regedit /s \\FQDN\netlogon\wmproxy.reg
    Registry File:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
    "ProxyEnable"=dword:00000001
    "MigrateProxy"=dword:00000001
    "ProxyOverride"="<local>"
    "ProxyServer"="proxy.FQDN:8080"
    Computer Configuration > Administrative Templates > Windows Components/Internet Explorer
    Disable changing proxy settings = Enabled
    Make proxy settings per-machine (rather than per-user) = Enabled
    As at the beginning of my post, the settings deploy to some PCs but not all and I have yet to see it work on the Windows 7 PCs. Am I attempting computer-based proxy settings the wrong way, or am I missing something with how I am currently trying to deploy
    it?
    Thanks all!

    Hi,
    You mentioned you have tried to configure the computer-based proxy settings via GPP but it didn’t work. Before going further, would you please let me know how did you configure the settings?
    In order to narrow down the cause of the issue, I suggest we’d better collect the following information.
    GPMC.log
    ==================
    a. On domain controller, click Start ->Run, type GPMC.MSC, it will load the GPMC console.
    b. Right click on "Group Policy Result" and choose wizard to generate a report for the problematic computer and user account (please place appropriately). (Choose computer and select the proper
    user in the wizard)
    c. Right click 
    the resulting group policy result and click the "Save Report…" => save report to save the report to a HTML file.
    Once we get the GPMC.log, please check the detailed report logged in it.
    You said you have created a startup script to edit the registry key to configure the proxy setting of the computer but it worked on only some of the computers in the domain. Have you tried
    to run the script on the problematic computer manually to see if it works? If it still fails to run, it could be related to the script issue, then we’d better ask in the script forum.
    The Official Scripting Guys Forum!
    http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
    Regards,
    Andy

  • Oracle 11gR2 systemd startup script

    I would like to write down the systemd startup script here for I can't find any on the internet. wish people don't have to browse around and find nothing.
    everything on internet is about 9i and no systemd startup script example.
    I hv tried several times that the script runs right and start up oracle at bootup.
    Issuing systemctl and it returns the following
    oracle.service                loaded active exited    Oracle database serverthe script is working on my Fedora 18 x86_64.
    Please give your input if you find mistake, error, or anything wrong.
    Thank you
    oracle.service
    [Unit]
    Description=Oracle database server
    After=syslog.target network.target
    [Service]
    Type=oneshot
    User=oracle
    Group=oinstall
    RemainAfterExit=yes
    ExecStart=/bin/oracle.sh;
    [Install]
    WantedBy=multi-user.targetoracle.sh
    #! /bin/bash
    #  script used by oracle.service
    ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    ORACLE_SID=orcl
    ORACLE_BASE=/home/oracle/app/oracle/product/11.2.0
    $ORACLE_HOME/bin/lsnrctl start;
    $ORACLE_HOME/bin/dbstart $ORACLE_HOME;

    newbieRyan wrote:
    I would like to write down the systemd startup script here for I can't find any on the internet. wish people don't have to browse around and find nothing.
    everything on internet is about 9i and no systemd startup script example.Really??!?!?!
    I googled 'start oracle on linux startup" and the very first hit is pretty much the standard reference on the subject: http://www.oracle-base.com/articles/linux/automating-database-startup-and-shutdown-on-linux.php
    I hv tried several times that the script runs right and start up oracle at bootup.
    Issuing systemctl and it returns the following
    {code}
    oracle.service loaded active exited Oracle database server
    {code}
    the script is working on my Fedora 18 x86_64.
    Please give your input if you find mistake, error, or anything wrong.
    Thank you
    oracle.service
    {code}
    [Unit]
    Description=Oracle database server
    After=syslog.target network.target
    [Service]
    Type=oneshot
    User=oracle
    Group=oinstall
    RemainAfterExit=yes
    ExecStart=/bin/oracle.sh;
    [Install]
    WantedBy=multi-user.target
    {code}
    oracle.sh
    {code}
    #! /bin/bash
    # script used by oracle.service
    ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
    ORACLE_SID=orcl
    ORACLE_BASE=/home/oracle/app/oracle/product/11.2.0
    $ORACLE_HOME/bin/lsnrctl start;
    $ORACLE_HOME/bin/dbstart $ORACLE_HOME;
    {code}

  • GPO with a startup script is not working.

    I have a GPO that I have added a ".bat" script to the "Computer Configuration\Windows Settings\scripts\startup/shutdown" section. The batch file is located in the netlogon folder. This script was part of another Old GPO
    that I want to consolidate into this new GPO. So I am taking the exact settings from the old GPO and  applying it to the new GPO.
    The script does not run at startup and when I go into Group Policy Management, highlight the GPO then on the right pane click the settings tab it doesn't display the startup script as being set. It's just not there. If I select edit and go to the
    "Computer Configuration\Windows Settings\scripts\startup/shutdown\startup" section the .bat script is present though.
    Also if I do a gpresult it also shows that it isn't running the script but all other settings in the GPO are being applied.
    This GPO has the User Config. side disabled
    Why isn't the GPO applying the script or even acknowledging that it is present in the settings tab?

    Hi,
    I could not see any report in the above link. I would like to know that did you follow the below path:
    http://technet.microsoft.com/en-us/magazine/dd630947.aspx
    In addition, logon script could only be applied to users. If want to apply to computers, we should use startup script.
    Regards,
    Yan Li
    If you have any feedback on our support, please click
    here
    Cataleya Li
    TechNet Community Support

  • Dont work startup script after update windows7 of wsus

    hi
    i have a domain controller 2008
    my clients is windows7 ultimate
    i have a file .exe and  i create a policy and this file .exe in start up script
    this policy is correct
    but when update clients. this policy not work .and in task manager, this file .exe  with username system show
    what happend
    please help me

    hi
    i test a way,
    i install a windows 7
    then in gpedit.msc, in startup script, add this file, when restart windows , this policy ok
    now ,i update this windows7, and about get 160 update of microsoft, now when restart windows, this policy not work and in task manager, this file .exe  with username system show
    this error not happend to my domain
    please help me

  • How to specify the webLogic server startup script to use different config.xml  file ??

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    I guess you're using Weblogic 6.1 with WLCS 3.5. I think you're supposed to work with one config.xml for the same domain, and not have a different config.xml.
    To start up different applications or EJBs, use the "target" property to control which applications to start up for the particular instance.
    YY

  • Check for libraries with a startup script

    Is it possible to check for open libraries with a startup script?  Currently, i'm trying like this:
    try{
         app.libraries.item("Marks.indl").name
    catch(e){
         app.open(File("/Support/InDesign/Lib/Marks.indl"))
    If InDesign is already open, this code works correctly (that is, if the library is open, nothing happens, otherwise it opens the library).  However, if I place this in the startup script folder, it will open a second (third, fourth, etc.) copy of the library, even if the library is already open.
    I think this happens because the library files are opened later in the startup sequence then the startup scripts are run.  Is there any way to work around this?
    Thanks,
    /dan

    Is your script supposed to work in ID CS3, or later?
    Anyway, InDesign CS4 seems to reopen the libraries before launching startup scripts, so the following code works for me:
    // Startup Script
    const libName = "Marks.indl",
      libPath = "/Support/InDesign/Lib/";
    var libFile = libPath + libName;
    if( !app.libraries.itemByName(libName).isValid )
      try {app.open(File(libFile))}
      catch(_){alert("Unable to open the library:\r"+libFile);}
    @+
    Marc

  • Need to write a startup script for TunTap

    Dear community,
    I am using 10.10.1, 13" MBPr Late 2013 and I need to be able to access my Work VPN. From what i have been told, the OS X client can't work and that I have been advised to use Shrew Soft VPN. (We initially tried to get the WatchGuard Firewall to build a Mac .dmg and that didn't work). To get ShrewSoft to work, I have had to follow these steps:
    http://ulaptech.blogspot.co.uk/2012/11/shrew-soft-vpn-client-for-mac-os-x.html
    ·         Install the qt-mac-opensource-4.7.1.dmg file first
    ·         Install the tuntap20111101.tar.gz file second
    ·         Install the shrew soft client.
    But the TunTap download that is above will not work as it is unsigned and Yosemite has now killed off unsigned kexts.I tried turning off the requirement for OS X for signed kexts by using this command:
    sudo nvram boot-args="kext-dev-mode=1"
    Then rebooting, but it didnt work.
    I can get the VPN to work if I open up terminal and enter these two commands:
    sudo kextload /library/extensions/tap.kext
    sudo kextload /library/extensions/tun.kext
    But I have to do this everytime i turn my Mac on.
    Could somebody please help me write those two lines into a startup script? As I really have no idea how to do it.
    Your help and guidance would be appreciated

    Choose Utilities from the Finder’s Go menu, open the AppleScript Editor, and paste in the following:
    set thepassword to text returned of (display dialog "Your administrator password is required." default answer "" with hidden answer)
    do shell script "kextload /Library/Extensions/tap.kext" with administrator privileges password thepassword
    do shell script "kextload /Library/Extensions/tun.kext" with administrator privileges password thepassword
    Save it as an application and set it as a login item.
    (120186)

  • Office 2010 setup thru computer startup script

    I am trying to install Office 2010 (sp2 seperate in the updates folder) thru group policy startup script and configured with OCT .msp file. Also try to start Access Runtime 2010 with SP2 update in the updates folder.
    In group policy set run scripts asynchronisely disabled and run scripts visible enabled otherwise i could not see what the system was doiing also not when configiguring OCT with full display. The gpo settings lets the screens show during install so the user
    can see what happens.
    There is another problem that rises however: I have made 2 batchfiles and both are starting as a computer startup script in seperate gpo's (that is in another post). First the Accessruntime is installing, after that Office 2010 is running. Both are installed
    after login but only one of the 2 have SP2 installed (7015) in this case Accessruntime has it. When i run only the Office 2010 install and not the Accesruntime 2010 then Office 2010 standard has also SP2 installed (version 7015). When running both only Runtime
    has this sp2 and Office has 4763 this is without sp2 i believe.
    In both folders (Office en Runtime) are the update files .msp in the updates folder of the installation, so thats ok.
    Why is only 1 of the 2 installing the SP2 when running both?
    A second thing is when restarting the system and before the login screen appears a message: Upgradepatch cannot be installed by Windows installer becasue the upgraded program does not excist of the upgradepatch is not suitable for this program?
    Here is part of the batchfile:
    IF EXIST "c:\program files\Microsoft Office\Office14\WINWORD.EXE" (goto mkfile) ELSE (goto DeployOffice)
    :mkfile
    ECHO Office 2010 is reeds geinstalleerd>c:\temp\office.txt
    goto end
    :DeployOffice
    call cscript \\sharename\office2010\Offscrub03.vbs ALL /bypass 1 /q /s /NoCancel
    start /wait %DeployServer%\setup.exe /adminfile %DeployServer%\officeconfig.msp
    echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    Another batchfile
    start \\sharename\accessruntime2010\setup.exe /config \\share\accessruntime2010\config.xml
    REM echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
    freddie
    after installing both runtime and office both have SP2 in updates folder:
    runtime 4763
    Office 2010: 7015
    So in this example runtme is installed without the SP2. installing runtime alone gives with SP2...
    The message is gone. There was a other policy inherited from above that caused the message. The only problem now is that when installing both, runtime 2010 with SP2 files and Office 2010 with SP2 files, then one of the two don't get the Sp2 installed, why
    is that?

    > In the bat file, I have a line that records if the install completes
    > successfully or failed.  I don't have any other logging in my
    > script.  Are you referring to something like GPO logging? I know that
    > the script runs because when I am looking at one of the PCs, I can
    So it is NOT GP related but rather your script fails?!? Put some "echo
    %~n0 %date% %time%>>Log-File-Of-Your-Choice.txt" in it to check what's
    going on. And put ">>Log-File-Of-Your-Choice.txt 2>&1" at the end of
    critical commands to capture their output.
    > I ran the gpresult /h command which shows all User Configuration
    > policies, but NOTHING appears under the Computer Configuration section.
    Admin commandline? If not, you don't see computer settings :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Martin,
    I still did not figure out why the installation script did not work for some of the PCs, even though the PCs have the same image.  For the ones that don't work, I will install manually.  Can you please look at the screenshots of the GPO
    settings I am using, and let me know if there is any settings that I need to remove or add?
      Thanks

  • Photoshop CS6 Startup Script Missing from Bridge CC

    Hi. After downloading a Photoshop CS6 update, Camera Raw unlinked from Bridge CS6. I have a full CC subscription so I downloaded Bridge CC and that solved the problem. Now Photoshop does not appear in the 'tools' menu. It is missing from the Startup Script list in preferences as well. Where can I find or download the photoshop script?
    On a mac, using Mavericks.
    Thank you!

    Bump. Any solutions yet?
    restart Bridge holding down option (Mac) or ctrl (Win) key ad from the menu choose reset references. Try again. BTW, the start up scripts from the needed applications for Bridge Tool menu are in Bridge preferences / Start up scripts, they should show and have a checkmark in front of them.

  • Bridge CS5.1 Tools are missing and there are no startup scripts available.

    Brand new MBP with Creative Suite CS5. Not sure what happened to the Bridge Image Processing Tools that where readily available in CS4. I looked for the Startup Scripts mentioned in other forum posts but this folder is empty: Library > Application Support > Adobe > Bridge CS5.1.
    Why make us hunt for Startup Scripts?

    I think you may be misunderstanding me.
    With many advantages with using mail for this forum the disadvantage sometimes is you don't have oversight in the whole thread.
    I was merely reacting on Curt with the CS5 and CS5.5 solution that solved some problems earlier this year but reading the thread again that seems not related to yours.
    Shortly before Curt his post I read your post about renaming the default folder name (which to me sounds bad). Hence my reference to a solution of an older problem that was solved by creating a new folder with the 5.1 addition and copy the scripts in there
    However I still don't understand why you are not able to have a normal setup after clean install.
    Without having experience with Lion I really would try the Recovery Disk for resetting your user account. With Pre Lion you could do an Archive and Install and it seems Lion also has such an option.

Maybe you are looking for

  • Possible Display problem on MacBook Pro 15''

    There is one pixel that shows up as red in the bottom left corner of my display. Screenshots do not capture it. It is present in every program and rebooting the laptop does not get rid of it. Does anyone know what it is or how I can get rid of it? Sh

  • Sending an Illustrator file to a computer that opens it up as a PDF?

    I am on a Mac OSX. I work in Illustrator CS3. My wife sends me an illustrator file on her computer to my computer in a Drop Box and I open it up OK. But when I make a change and do a Save: a window comes up "cant save Illustration as you do not have

  • Highlight reconciled files in RSC 3.1 (Enhancement request)

    I just filed this enhancement request, pertaining to reconciling files between branches (parallel development). *******Enhancement / FMR********* Brief title for your desired feature: Highlight reconciled files in RSC 3.1 How would you like the featu

  • Transferring image files from disc or hard drive back to iphoto

    i have backed up older images to both an external firewire hard drive and to DVD. now i want to transfer some photos back to my laptop. but all i get are 4K alias'. how do i get the files back to my computer? i also have an iphoto library back up on

  • Blackberry Desktop wIll not install on Window 8

    I cannot get BB Desktop (710_b033_multilanguage) to install on my new Windows 8 laptop: The zipped file unzippes itself; askes for the preferred language; Installshield Wizard starts to run. Then I get the below message in a box called "WIndows Insta