Launch one CS app from another

Hi all,
Newbie alert - sorry!
I am currently stuck on something that seems simple, but I cannot get it to work - it's about coordinating between multiple CS apps.
I want to cause one Creative Suite app (e.g. Photoshop) open a certain document (say a JPEG file) while running a CS Extension running in another Creative Suite app (e.g. Illustrator).
I first naively assumed I could just use the app property of the Photoshop class (i.e. 'com.adobe.csawlib.photoshop.Photoshop.app') from an extension hosted by Illustrator, but I am not having much luck. One possible cause is that Photoshop is not necessarily running. When I try to refer to Photoshop.app while 'inside' an Illustrator extension, I do get an object back, but it's full of nulls and empty member variables - it's not properly instantiated, and as soon as I try to refer to something 'in' it (e.g. Photoshop.app.open(...)), a null exception is being thrown.
I've tried pre-launching Photoshop manually, but that does not seem to help, and any which way, I want to automatically launch Photoshop if it has not been launched yet.
The next thing I tried was to use an embedded ExtendScript - when one is using ExtendScript, it's fairly simple to talk to other apps in the Creative Suite. There are objects called 'photoshop', 'illustrator' and so on, and there is BridgeTalk.
But when I call my ExtendScript from within ActionScript using the HostObject, it looks like I am missing all of the normal 'infrastructure' I've grown to expect when running ExtendScript. I suspect it's because I am in a separate engine that does not have the stuff I want to access.
Then I tried to force things - I noticed the sample code that runs an ExtendScript in ActionScript has a phrase:
var myBridgeScript : HostObject = HostObject.getRoot(HostObject.extensions[0]);
and HostObject.extensions[0] is something like 'com.adobe.illustrator'. So I tried other strings here (e.g. running inside Illustrator, I tried 'com.adobe.photoshop') - no luck. Got a null in myBridgeScript.
I looked at the CSXSEvents - but as far as I understand those would only help me when Photoshop is already running - Bob Stucky's cookbook article
http://cookbooks.adobe.com/post_Inter_Application_Communication_with_the_Creative-18456.ht ml
ends with: 'Possible extensions would be to launch Photoshop, if necessary, using Air's NativeProcess'. That sounds like bad news, and seems to indicate I'd have to go search for the Photoshop app path the hard way (keeping in mind that some people install their Creative Suite in odd places, so it's not always in '/Applications/Adobe Photoshop CSsomething' or 'C:\Program Files\Adobe\Adobe Photoshop CSsomething').
Now, I can go do this the complicated way (calling down to the underlying operating system, try to find the correct Photoshop app (there might be more than one), and launch the document through the OS) - but I was really expecting there would be a simple magical trick to do it in a much more direct manner - it's clear the Creative Suite apps know about each other, so I was hoping to find a way to rely on their internal smarts to launch documents from one CS app into another CS app.
Any ideas?

Any ideas?
Hi Kris!
Yeah. Wait for Vulcan in CS Next... (sorry I couldn't resist...)
I first naively assumed I could just use the app property of the Photoshop class (i.e. 'com.adobe.csawlib.photoshop.Photoshop.app') from an extension hosted by Illustrator, but I am not having much luck...
I'd expect that. The CSAW libs are basically all smoke and mirrors. If you can't do it using ExtendScript, you can't do it in ActionScript. One app does not know another app's DOM...
The way I'd handle it would probably be using Bridgetalk on the ExtendScript side of things with a (double) callback going back to the ActionScript side of things once the Bridgetalk returns its results to the ExtendScript layer.
We should probably get together to solve this problem for the long-term...
Harbs

Similar Messages

  • Launching an AIR app from another (when offline)?

    I have a pair of AIR applications that are meant to work
    together as part of an application suite. One feature is that a
    user should be able to click a button in APP_1 and launch APP_2 (if
    installed). To do this I created a "LaunchButton.swf" that loads
    "air.swf". This works GREAT when the user is online and "air.swf"
    is able to be loaded from "
    http://airdownload.adobe.com/air/browserapi/air.swf".
    I tried to copy "air.swf" locally and use that instance but I am
    guessing that it doesn't work due to security restrictions.
    If there are any AIR engineers reading this (Oliver?) please
    let me know if there is a solution to "Launching an AIR app from
    another (when offline)?"
    Thanks!

    I think theoretically it shouldn't work, and doesn't by the
    response you give. Remember a functional work around isn't always a
    fix. What you've essentially done is loaded the air.swf into a
    sandbox bridge, bridging it between a web sandbox and an
    application sandbox, therefore you're able to call its methods
    without security errors. However, if the air.swf loads in another
    swf, maybe a helper swf, you won't be able to access any methods in
    that swf, neither will the air.swf. To my understanding, it's not
    grandfathered into the sandbox bridge, but retains its web sandbox.
    Before going crazy about the bad news I may have just given,
    wait until Ted returns to give you a response. I could be way off
    par here :) Good luck!

  • Using FDM to transfer data from one HFM app to another

    We are facing a project in which we need to load data from one HFM app to another. There're some mapping going so it was advised that FDM be used.
    However, the HFM extract files contain all data on the rows. While for the FDM multiload, the data from different periods need to be layed out on the columns. Also, we have multiple scenarios/years of data to handle. What would be the best approach? Has anyone had similar experience to load data from one HFM app to another using FDM? Thanks!

    It appears that this is some kind of migration project due to the scope of the data contained in the single file? If so whatever you do is like ly to be trow away once the migration of data is completed.
    You have a couple of options:
    1) Get the data extracted from HFM in multiple files instead of one bulk file, broken down by scanario,year & period
    2) Take the single data dump file produced by FDM and manipulate it yourself to get the data in a more usuable format for processing through FDM.
    Option 2 could be achieved via any ETL tool or a custom file parsing script. What may be more attractive to you and allow you to fully leverage your investment in FDM is that you could use the PULL adapter that ships as part of the FDM adapter suite to perform this transformation exercise. The PULL adapter takes a flat file input and allows you to use all the in built functionality of FDM to transform it and output a modified flat file (or series of flat files). You could use it to produce multioload files or a series of files broken down by scenario,year,period.
    Whatever you do I would suggest that break the single data file down into smaller chunks as this will help with the iterative debugging process you will inevitably have to undetake whislt migrating the data to the new application.

  • My ipod jumps from one screen / app to another on it's own. Sometimes I can't unlock or even shut off. I've tried the reset, I've tried back up, even tried restoring to factory settings and is still having problem. Any ideas of what I can do.

    My ipod jumps from one screen / app to another on it's own. Sometimes I can't unlock or even shut off. I've tried the reset, I've tried back up, even tried restoring to factory settings and is still having problem. Any ideas of what I can do.

    When you still have the problem after restoring to factory defaults/new iPod then you very likely have a hardware problem and an appointment a th Genius Bar of an Apple store is in order.

  • Hello i want to get an app from another store

    hello i want to get an app from another store , i am from india so use indian app store but i want to get textplus which is not available on indian store it is available on us store and text plus is a free app
    so i was thinking that can i make a fake id or something like to get an app from itunes using that fake id and then  installed it in  my ipod touch??
    and is it legal ? i dont want to do anything stupid with my ipod
    so pls reply and thankyou..

    if you have access to another apple id that has been created in that country you can do this, for example I travel frequently between two countries, I have a billing address in both, I create 2 apple id, one for each country.
    I can purchase from either store as long as I am logged into the corresponding ID for that country. No matter where I am geographically located.
    The main thing you need to be aware of is it you switch to many times between the stores, it will stop allowing you log into one of them, not sure what the actuall number of switches is though....

  • HT201679 I have just received an email saying i have downloaded an app from another device. This wasn't me, i have changed my password. What do i do now?

    I have just received an email saying i have downloaded an app from another device.
    This wasn't me, i have changed my password.
    What do i do now?

    Hi stirling r,
    I have always been very weary of fake emails and can easily spot the ones that get through the spam filters but for the first time in my 25 plus years memory of using email, I though a fake email was genuine.
    Ok, granted the email was supposedly from Apple so there's an implied level of trust there and I had updated my Apple ID details hours before, but it was only after doing a double take at the url link in the email I realised it was fake. It was pointing to an IP address (http://104.145.233.95/..etc) and not the usual https://www.apple.com/..etc.
    I just wandered how may Apple users, especially new ones would have unwittingly compromised their Apple ID details by this scam.  I would love to see Apple doing more to make its users aware of scams directed at them.
    Hope this helps someone!
    Identifying fraudulent "phishing" email
    Regards,
    Dee

  • How do I download apps from another account on to my new account

    How do I download apps from another itunes account into my new itunes account using my iPhone? 

    Apps bought using one Apple ID are forever tied to that Apple ID and cannot be merged or transfered to another AppleID.

  • Not able to execute one Java program from another one via. exec()

    Hi,
    I am new to this forum, so I might be asking a very trivial quetion.
    My program Ap1 is :
    class Ap1
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    p=rt.exec("javac,Pr.java");
    Runtime.getRuntime().exec("javac,Pr.java");
    When I run the above program, I get below error at the line 7(bold one):
    D:\batchwe>javac Ap1.java
    D:\batchwe>java Ap1
    Exception in thread "main" java.io.IOException: CreateProcess: javac,Pr.java err
    or=2
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    at java.lang.Runtime.exec(Runtime.java:591)
    at java.lang.Runtime.exec(Runtime.java:429)
    at java.lang.Runtime.exec(Runtime.java:326)
    at Ap1.main(Ap1.java:7)
    Path is set as below(which seems correct):
    D:\batchwe>path
    PATH=C:\Program Files\Java\jdk1.5.0_05\bin
    I am just wondering how to call one Java program from another one?!
    Please help.
    thanks
    Rashmi

    Hi diptaPB,
    Thanks for your suggestion.
    Here is how I tried it again, but not getting the desired output:
    Class Pr looks like below -->
    class Pr
    public static void main(String a[])
    System.out.println("hi from process");
    When I run 'Pr' from command prompt, i get the desired output:
    D:\batchwe>java Pr
    hi from process
    However, when I call 'Pr' from another program Ap2.java, it seems that it does not call 'Pr':
    class Ap2
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    String[] cmd=new String[2];
    cmd[0]="javac";
    cmd[1]="Pr.java";
    p=rt.exec("cmd");
    D:\batchwe>javac Ap2.java
    D:\batchwe>java Ap2
    ************* no output appears here***********************
    Looking forward for your help.
    regards
    Rashmi

  • Calling one WAD Report from another WAD Report

    Hi All,
              I want to Call one WAD report from another WAD Report and I want to show that Report in a Container of the Calling Report Itself. Kindly give the Solution. Thanks for your support in advance.
    Thanks & Regards
    Shiva

    Hi Shiva,
    There is Command called "SET_TEMPLATE" Set Web Template.
    Here you can select any of your existing web template and choose to open it in current page of in a new window.
    Hope it helps.
    Regards,
    Pratap Sone

  • Invoke one java application from another?

    Hello,
    Can anyone tell me how to Invoke one java application from another?
    Suppose I have a small java application say, Hello.java which has its own main() method and
    I also have another java application, say World.java which has its own main() method too.
    What I want to do is invoke or startup World.java from Hello.java.
    If possible kindly give code examples?

    main is just a normal method so Hello can invoke the main method of World just as it would invoke any other method.
    Kaj

  • How sholud we call one jframe class from another jframe class

    Hi
    In my application i am calling one jframe class from another jframe clas.
    how sholud we make previous jframe inactve when another jframe is invoked?(user sholud not able to make any changes on on parent jframe window when another jframe is invoked)
    Pls reply.

    Sorry for me it is not possible to change existing code,
    pls suggest me any other solution so that i can inactive parent jframe when child jframe execution is going on.

  • Download app from another country

    Is there any chance to download app from another country with my account without changing the country or creating a new account?

    No.

  • Buying apps from another store?

    Is there any way of buying apps from another country store and using them on your ipad? There are some apps I would like but for some reason are not available on my own country store.
    Any ideas?
    Thanks.

    No - the terms of use of the iTunes stores say that you can only buy from the country that you are currently in (and, I'm not sure on this, but you may also need to have a credit card registered in that country).

  • Can you launch an android app from an android app built with air?

    Hi I might a have project coming up soon where one of the requirements is that the android air application can launch another application on the device...
    In pure java this would look something like this....
    Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.rpg.rbar");
    startActivity(LaunchIntent);
    Does anyone no if I can perform a similar method using as3
    Thanks
      Aidan

    Try the below.  Found this at the below link. 
    http://www.blogbyben.com/2013/04/launching-android-app-from-adobe-air-app.html
    var url:String = ("intent:#Intent;" + "action=android.intent.action.MAIN;" + "category=android.intent.category.LAUNCHER;" + "component=com.android.settings/.Settings;" + "end");  navigateToURL(new URLRequest(url));
    Question I have is, is there any way to get a list of currently installed apps?

  • How can I launch an external app from a keynote presentation?

    I'm trying to launch a Prezi presentation ("Prezi.app") from a keynote presentation, but don't know how to do it.
    Links in keynote can only refer to websites or slides within the presentation, but not to start another App, like in - I hate to say it - Powerpoint.
    Any ideas?
    Thanks
    Juergen

    Keynote is specifically prevented from opening applications.
    In Keynote 09 (the previous version), hyperlinks can:
    Jump to a slide in the same presentation
    Open a webpage in the computer’s default web browser
    Open another Keynote document
    Open an email message
    Exit the slideshow
    in Keynote 6 (the latest version) hyperlinks can:
    Jump to a Slide in the same presentation
    Web page
    Mail opens a pre-addressed email message
    Exit the presentation

Maybe you are looking for

  • One screw left over

    I just completed replacing the bottom case, and upgrading the hard drive on my 12" G4. I used the instructions from iFixIt.com and found them very useful. Everything is working, Leopard is installing on the new hard drive. But... I have one little 2.

  • How is iPhoto 6 Folder Structure Working Now? (Straggling year folders)

    I can see in iPhoto 6 that the new iPhoto Library folder structure is now based on YEAR>ROLL#, in place of YEAR>MONTH>DAY. After upgrading from iPhoto 5 to 6, I see the new ORIGINALS and MODIFIED folders with YEAR>ROLLS within, but what of the remain

  • Open with menu not showing icons

    Hi, since i installed Mavericks i've been experiencing some issues, and the one i need to solve right know is this: In this example is only with media players but it happens with other apps too, both system and non-system apps. I've tried this comman

  • Want a Dictionary Icon next to Text field??plz help

    i am using jdev 11.1.2.4.0 and i want dictionary icon next to text field for searching words in dictionary....plzz help

  • Classpath for java class for Business Operation

    I am running wls 7.0 with wli on Solaris. I am running studio on my developemt w2k pc and connectioning to my unix wls. I want to define a business operation using my FCV.class. Where should I put the class (pc or server) and where do I need to appen