Launch an app of CS on the other

Hi all

Newbie Alert - sorry!

I'm currently stuck on something that seems simple, but I can't make it work - it comes to coordination between multiple CS applications.

I want to cause a Creative Suite application (Photoshop, for example) open a given document (say a JPEG file) during the execution of a CS Extension running in another Creative Suite application (Illustrator, for example).

I assumed first naively I could just use the application property of the Photoshop class (for example, "com.adobe.csawlib.photoshop.Photoshop.app") by another extension hosted by Illustrator, but I'm not having much luck. A possible cause is that Photoshop is not necessarily running. When I try to refer to Photoshop.app "inside" an extension of the Illustrator, I get an object, but it is full of NULL values and empty member variables - it is not properly instantiated, and whenever I try to refer to something 'in' it (e.g. Photoshop.app.open...), a null exception is thrown.

I tried before launching Photoshop manually, but this does not appear in Help and anyway, I want to launch Photoshop automatically if it has not yet been released.

The next thing I tried was to use an embedded ExtendScript - when using ExtendScript, it's pretty simple to talk to other applications of the Creative Suite. There are objects called "photoshop", "illustrator" and so on, and there BridgeTalk.

But when I call my ExtendScript of in ActionScript using the HostObject, looks like that miss me all the normal 'infrastructure' I have grown to expect when executing ExtendScript. I suspect it's because I'm in a motor that doesn't have the stuff I want to access.

Then, I tried to force things - I noticed that the code example that runs an ExtendScript in ActionScript has one sentence:

var myBridgeScript: HostObject = HostObject.getRoot(HostObject.extensions[0]);

and HostObject.extensions [0] is something like 'com.adobe.illustrator '. I haven't tried other strings here (for example running inside the Illustrator, I tried "com.adobe.photoshop") - no luck. Got a null value in myBridgeScript.

I looked at the CSXSEvents - but as far as I understand those who would only help me when Photoshop is already running - article by Bob Stucky Cookbook

http://cookbooks.Adobe.com/post_Inter_Application_Communication_with_the_Creative-18456.ht ml

ends with: «possible extensions would be to run Photoshop, if necessary, by using NativeProcess in Air» That sounds like bad news and seems to indicate that I have to go find the path of the application Photoshop the hard (keeping in mind that some people install their Creative Suite in odd places, isn't always in "/ Applications/Adobe Photoshop CSsomething" or "C:\Program Files\Adobe\Adobe Photoshop CSsomething").

Now, I can't do that the complicated way (the call down to the underlying operating system, try to find the correct application of Photoshop (there could be several) and run the document through the BONE)- but I really expected there would be a simple magic trick to do so in a much more direct way - it is clear that Creative Suite applications know each other , so I was hoping to find a way to leverage their internal intelligence to launch a CS application documents in another CS application.

Any ideas?

Reflection, you probably don't need reminders.

You can do this using two (or rather three) driven ExtendScript Bridgetalk (or non-BridgeTalk) separate scripts:

Something like this should launch Photoshop and tell you its status:

function launchPhotoshop(){
 var status = BridgeTalk.getStatus("photoshop");
 switch(status){
           case "IDLE":
           case "BUSY":
           case "PUMPING":
           return status;
 }
 BridgeTalk.launch("photoshop");
 return status;
}

You just need to keep voting until Photoshop is accessible. Once Photoshop is open, run another Bridgetalk script...

HTH,

Substances

Tags: Creative Suites

Similar Questions

Maybe you are looking for

  • Menu with mail response, missing forward etc.

    Missing the mail Menu to front etc, reply, reply to all, when I want to send an e-mail. I checked the toolbars and Menu Mail is checked, however I can't send messages. I have Windows 7 and I use Mozilla Thunderbird.

  • Cisco Nac 3310 to level 4.1.6 to 4.7.2

    Hello I need to upgrade the environment of the NAC 4.1.6 version 4.7.2 version. This is the scenario. 2 CAM 2 CASES the platform of 3310 in HA pairs. On Cisco's Web site, I found that it is possible through this upgrade to 4.7.2: 4.1.6--> 4.1.8--> 4.

  • Looking for dynamic PDF (page-flipping) Viewer for my website

    I wasn't sure if this or the PDF forum is a better place for this question, but...I am looking for a PDF document for visitors to my website on a page that contains nothing but. Ideally, it would be an experience as dynamic as possible, with some ani

  • I wonder if I format my pc can redownload Adobe applications

    I wonder if I format my pc can redownload Adobe applications

  • I want to reactivate my subscription

    I have a student subscription plan and I had a problem of payment on April which was resolved last month, at least, it looks like to- as I have a new Bill of three days ago (6 May), but my subscription DIND reactivated. When I open any creative cloud