How to start a particular version of Photoshop when multiple versions are installed

I have written a small software that automates a few functions in PS CS2.
Till now it was working just fine with PS CS2. Now due to some unknow reasons the client has installed CS 4 and CS 5.
Now my clinet want that the software should be able to detect all installed version of PS and allow him as user to choose as to with which version of PS my software should automate.
Is this possible?
If yes and how to achieve it?
Oh! I have also abserved an unusual behaviour. I don't know whether it is because of my software or because of PS.
By default when my software executs this automation script (generated using Script listner)
Rem =======================================================
  Dim objApp
  Set objApp = CreateObject("Photoshop.Application")
  Rem Use dialog mode 3 for show no dialogs
  Dim dialogMode
  dialogMode = 3
  Dim id11
  id11 = objApp.CharIDToTypeID("setd")
      Dim desc3
      Set desc3 = CreateObject("Photoshop.ActionDescriptor")
      Dim id12
      id12 = objApp.CharIDToTypeID("null")
          Dim ref2
          Set ref2 = CreateObject("Photoshop.ActionReference")
          Dim id13
          id13 = objApp.CharIDToTypeID("Prpr")
          Dim id14
          id14 = objApp.CharIDToTypeID("GnrP")
          Call ref2.PutProperty(id13, id14)
          Dim id15
          id15 = objApp.CharIDToTypeID("capp")
          Dim id16
          id16 = objApp.CharIDToTypeID("Ordn")
          Dim id17
          id17 = objApp.CharIDToTypeID("Trgt")
          Call ref2.PutEnumerated(id15, id16, id17)
      Call desc3.PutReference(id12, ref2)
      Dim id18
      id18 = objApp.CharIDToTypeID("T   ")
          Dim desc4
          Set desc4 = CreateObject("Photoshop.ActionDescriptor")
          Dim id19
          id19 = objApp.CharIDToTypeID("HsSt")
          Call desc4.PutInteger(id19, 1)
      Dim id20
      id20 = objApp.CharIDToTypeID("GnrP")
      Call desc3.PutObject(id18, id20, desc4)
  Call objApp.ExecuteAction(id11, desc3, dialogMode)
  Call SetUndoTo1CS3
It will automatically start that version of PS which was last running before the system was shut down.
Let me try an explain this in a different way:
To get my software to talk to a particular version of PS I have to perform the following steps:
Start that version of PS in I am interested
Open a file and save is under a different name
Close PS
Restart my PC
After performing all these steps when my software automates PS that version of PS will start which was last run.
Any idea as to what is going on?
Please help me solve this problem.

The answer is somewhat easy until you start talking about launching 32 or 64! When you call CreateObject you specify which version you want. Most of the time you want the current version so you say "Photoshop.Application". But you can say "Photoshop.Application.11" for CS4 or .12 for CS5. You could look in the registry to see which keys are present and pose a question to your user.
--------------- 32 and 64 bit fun ---------------------
If you are on a 64 bit OS you have two versions of Photoshop installed beginning with CS4. If your application is a 64 bit application and you are the correct user you can see into both the 64 bit registry and the 32 bit registry. If you are a 32 bit application you only see the 32 bit side of the registry.
What I do is run my VBScripts via the cscript application and I launch cscript in either 32 or 64 bit mode.
Here is my test:
Launch 32 bit version of photoshop via cscript in 32 bit mode and specify the version:
E:\h:\windows\SysWOW64\cscript \files\VBScripts\TestLaunch10.vbs 11
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Trying to launch Photoshop.Application.11
DOM library
11.0.2
H:\Program Files (x86)\Adobe\Adobe Photoshop CS4\
Done
Launch 64 bit version:
E:\cscript \files\VBScripts\TestLaunch10.vbs 11
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Trying to launch Photoshop.Application.11
DOM library
11.0.2
H:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\
Done 
You can see from the path that the correct version is launched.
Here is a snippet of the code...
appName = "Photoshop.Application." & vStringSet app = CreateObject(appName)

Similar Messages

  • How does DIAdem keep track of which version is active when multiple versions are installed?

    I need a way to find out which version of DIAdem is active, without creating an automation reference. How does DIAdem keep track of this? I don't think it's through the registry as far as I can tell. Thanks.

    Hi,
    I'm not quite sure what you mean by "version of DIAdem is active". If you are trying to reference DIAdem from an external program, you will need to use an automation reference. Besides this case, I am not sure what you are referring to.
    Perhaps a short description of your application or intended use will help me point you in the right direction.
    Allen P.
    National Instruments

  • How to open a pdf package in browser when multiple files are bound together.

    Hi,
    I have to open a pdf package in browser that contains multiple pdf files any suggestions will help me a lot.
    Thanks.

    It shows me a page says "Multiple files are bound together in this PDF package"

  • How to start a particular database in unix/linux

    Hi,
    Could any one tell me how to start a particular database in Unix/Linux assuming that my server consists of 10 databases.
    Can we use LSNRCTL tool for this??
    Regards,
    Nagarjun.

    > Could any one tell me how to start a particular database in Unix/Linux
    assuming that my server consists of 10 databases.
    There is something very wrong in basic understanding of Oracle RDBMS architecture, when running 10 Oracle instances on a single server.
    10x temp space. 10x redo space. 10x SGA. 10x system processes footprint. This is NOT how one scales Oracle and NOT how one uses Oracle optimally.

  • Hi. I was trying to update my Itunes to the newer version but now when I try to install it, it comes up with Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services.

    Hi. I was trying to update my Itunes to the newer version but now when I try to install it, it comes up with Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services. How do I fix this?

    Hi LyfsGD!
    Here is an article that can help you troubleshoot this issue with the Apple Mobile Device Service:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • HT1349 How do I find where my multiple copies of Outlook are? (It said  Multiple Outlook versions installed. You can't use iCloud when multiple versions of Outlook are installed.  To use iCloud with outlook, uninstall one version.")

    I have just started with iCloud, and run into a problem from my PC.
    It says: "
    Multiple Outlook versions installed.
    You can't use iCloud when multiple versions of Outlook are
    installed.  To use iCloud with outlook, uninstall one version.
    I have searched and found two versions of Outlook 2013 and 2015  (one of which was inactive, but I have removed it), and one of outlook.pst, which I have removed.
    Where do I go from here?

    That's a Windows/Office problem. You should ask in the Microsoft support forums.

  • Extension manager says I need a newer version of photoshop when I already have the most current version cc2014

    extension manager says I need a newer version of photoshop when I already have the most current version cc2014. Any thoughts on this?

    lance have you found an answer to your question?

  • "you can't use Icloud when multiple versions of outlook is installed. As far as i know I only have 1 version installed. Any ideas

    I have recently loaded Icloud and received the following message
    "You can't use ICloud when multiple versions of Outlook are installed. To use ICloud with outlook uninstall one version" As far as I am aware I only have one version. Is there anyone who had a similar issue and if you did what is the solution?

    You're probably on OS X Lion?
    I had the same problem as you. I used Software Update to update Logic Express to the latest version, and then it ran without any problems.

  • ICloud was working fine, suddenly when I try to sync I get this message "you can't use icloud when multiple versions of outlook are installed".  I only have one version of outlook installed.  Any suggestions?

    iCloud was working fine, suddenly when I try to sync I get this message "you can't use icloud when multiple versions of outlook are installed".  I only have one version of outlook installed.  Any suggestions?

    Message was edited by: leroydouglas
    better yet, try this solution:
    https://discussions.apple.com/message/12351186#12351186

  • How to create an alert to inform me when weblogic services are down

    how to create an alert to inform me when weblogic services are down
    Thank you

    Hi,
    This can be done using Oracle Enterprise Manager grid control. Also you can do it using wlst scripting. Please find below url for details regarding this.
    http://middlewaremagic.com/weblogic/?p=5838
    If this helps you please mark.
    Thanks,
    Kishore

  • How to deactivate the serial number for photoshop elements that is not installed or available?

    I have a version of Photoshop elements that has been uninstalled and is no longer available to reinstall.  When I uninstalled from an old computer, I failed to deactivate the serial number.  How can I do that without reinstalling?
    Thanks
    keithz

    Wow, I tried the "chat" option and waited for 30 minutes....no one ever helped.....so I called a customer service number for the creative club option and they promised to put me though to someone who could deactivate my product.....waited another 30 minutes on hold.  So then I called the sales department and wow, just as I thought......someone took my call right away.  (Please note that the computer that the software I am trying to deactivate has been reformatted and I am unable to deactivate in that manner).  I asked the poor sales rep, why on earth would I spend hundreds of dollars for new software when the only people who you can get to help you are the sales people.  I think I will stick with free open source applications........this is so not worth it......

  • Transfer Windows version of Photoshop to Mac version

    Is it possible to get the key for a Mac version of Photoshop Extended(Student's and teacher version) if I already got the Windows version?
    I have only downloaded it once on my PC.
    If yes then how?

    Hello, if you have Photoshop CC, you can also install and activate a copy on a second machine that is not the same operating system.
    If you have CS6, the two machines must be of the same platform. If you decide to switch from PC to Mac (but not both), request a license transfer: http://helpx.adobe.com/x-productkb/policy-pricing/transfer-product-license.html

  • How to choose when windows updates are installed

    On previous versions of Windows I always used to set updates to be installed on a Monday, 6 days after Patch Tuesday, allowing enough time for any buggy updates to get redacted so I didn't end up with a bricked system.
    I cannot find how to do this on Winodws 8.1, there doesn't seem to be any option to choose when updates are installed.
    Snake

    Hi,
    You can control the schedule behavior via group policy, run gpedit.msc to launch the group policy editor
    Computer Configuration\Administrative Templates\Windows Components\Windows Update\Configure Automatic Updates, then change the options as you want
    after that, run gpupdate /force to update the policy
    Yolanda Zhu
    TechNet Community Support

  • Hi Due to impossibility to upgrade the i tunes version installated i removed the old version but now when i try to install the newer  version 10.5.3  the set up  hangs on co: collecting information... Please help

    Hi
    Due to impossibility to upgrade the i tunes version installated on my computer, i decided to remove it because i had needed to sincronize my new iphone 4s. But when i try to install the i tunes newer version the installation hangs on the collecting product information and  only after a long wait  i receive the following message :
    An error occurred during the installation of assembly ‘Microsoft.VC80.CRT.type=”win32”,version=”8.0.50727.6195”,publicKey Token=”1fc8b3b9a1e18e3b”,processorArchitecture=”x86”.Please refer to Help and Support for more information. HRESULT: 0x800736B3
    Heeeeeeeeeeeeeeelp

    What version of Windows are you using? This is not a problem with iTunes. It may have to do with an issue of the compatibility of a newer version of iTunes with an older Windows system/older hardware.
    What do you want to synchronize? If you were previously using iCloud you should be able to restore most of your oringinal content onto your new phone via was was last synched with the iCloud on your previous phone/device.

  • How to Quickly Determine Whether or not Specific Hotfixes or Updates are Installed?

    I have a handful of applications that require specific hotfixes or updates to be installed.  An excellent example of this is Internet Explorer 11 which has
    9 prerequisites. (well only 6 are required, the remaining 3 prerequisites provide a better experience.)
    Is there a reliable & fast way of checking for whether or not a specific hotfix and/or patch/update has been installed? 
    I am aware of `wmic qfe` but
    According to
    this, it will only "retrieve updates for Windows OS itself and its components (such as Windows Internet Explorer (IE) or Windows Server roles and features)"
    Even if I'm checking for just 1 hotifx, it takes roughly 6 seconds to retrieve that information.  When we're checking for dozen or two hotfixid's that quickly adds up. `Measure-Command {wmic qfe where "hotfixid='kb982018'"}`  So
    for IE11, we're looking at nearly 1 minute of waiting.  Nonsense.
    Note: I'm not asking "is my system patched?" nor am I asking for a report of installed patches.  I could use WSUS, SCCM, MBSA and a multitude of other solutions for that.  I need something scriptable that will install a specific prerequisite
    at runtime, so I'm looking for a batch/vbscript/powershell solution that'll be quick, like 1 second quick, not 5+ per KB.

    Thanks.  I'm no expert.  I don't have a slew of characters before or after my name.  This isn't an I'm right/you're wrong situation.  I don't claim to know everything - just trying to mitigate the questions I know I'm going to be asked.
    Prior to posting, I saw
    your post here (which is great I might add) which works, and it will work for determining whether or not a machine has a specific update/hotfix installed.  But it consistently took 6 seconds to retrieve a single result on our assets.  This
    was on a Core i7 with 8GB and an SSD running Windows 8.1 Pro.  This doesn't bode well for our day-to-day systems which are Core 2 Duo's with 4GB and spindle disks.  Unless my math is wrong, if I'm checking for all 6 possible required IE11 prereqs
    thats 36 seconds of wait time just for WMI queries.  I'm just shocked it takes so long which made me wonder whether or not there was a faster retrieval method.
    Why would I think there's a faster method?  The closest example I can think of might be a software install.  Sure, I can query WMI, but that too takes a while.  But I could a
    `reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{product code}` or `reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox 29.0.1 (x86 en-US)`
    then check errorlevel to determine if the product was installed, right?  Or take it a step further & check the `/v Version` to make sure it matches what I expect it to be, right?   We don't have fancy tools here like Altiris or SCCM
    :(  Reg query just appears to be significantly faster than wmic/gwmi in that specific scenario.  That gave me hope there
    might be a faster option for checking for installed updates & hotfixes.
    IE11
    tries to install the proper prerequisites.  If that fails, they'll have to be done manually. 
    And it just so happens that the IE11 install
    does fail in our environment when we don't install the manually.  Fortunately we're not ready to deploy IE11, so there's no rush to push IE11.  I was merely using IE11 as an example because by virtue of the articles existence, this
    is a possible real-world scenario.  If I know that we can safely regression test the 6 patches for IE11, and just have it be an optional installation for the users that want or need it, then I can add the prerequisite logic to the script to help ensure
    a successful installation.  Again, an IE11 deployment isn't the goal here.  IE11 is just the example.

Maybe you are looking for

  • Does PE10 install as a 32-bit or 64-bit application on Windows 8 64 bit?

    Premiere Elements 10 was released as a 64 bit application only when on Windows 7 64 bit. For all other operating systems, it was still a 32 bit application running in the 32 bit compatibility mode of a 64 bit system. For me, that poses an interesting

  • Apple ID and password no longer works on phone after upgrade of iOS6

    I can't log into the App Store on my phone now that I have upgraded to the iOS6.  Keep getting a message that says "Your Apple ID or password is incorrect." I have changed my password twice now since the upgrade but I still can't get in to buy a new

  • RH9 publish to web server using HTTP

    Good afternoon, I'm attempting to upload a help site to a Windows IIS 7.5 web server. The failure message I receive is Warning: Failed to publish to "Bid Manager Support". reason: Connection failed. Please check the connection and post again. Native

  • Determing  safety stock ,stock in transit and free stock,

    Hi , I need to get  safety stock , stock in transit and free stock as apperaing in the planning book , i dbugged the planning book and i find one funtion module which is using the live catche concept by passing some memory id. is there any funtion mo

  • Can I upgrade memory on Macbook Pro 13" 2.5GHz 4GB RAM, Model Z0MT7B/A

    I have ordered a Macbook Pro from a retailer here in the UK. It ships with 4GB RAM but I know I will 8gb or possibly 16GB. Does anyone know whether the memory is removable and changeable in this model, as it used to be in earlier Macbook Pro 13" mode