• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to open closed project panel by PPro api?

New Here ,
Nov 30, 2017 Nov 30, 2017

Copy link to clipboard

Copied

Hello,

I want to open closed project panel by PPro API.

Steps:

  1. Open project.
  2. Close the panel. Right click on Project Panel >> 'Close Panel'.
  3. Try to open Project by API.

I have tried to open that project once again by below code but it can't open the project panel.

var projToOpen = new File(projectFilePath);

app.openDocument( projToOpen.fsName,

  1, // suppress 'Convert Project' dialogs?

  1, // suppress 'Locate Files' dialogs?

  1);

Is there any way to open it?

I found below API code to open extension but I am not sure that will work for this panel.

CSInterface.prototype.requestOpenExtension = function(extensionId, params)

{

  window.__adobe_cep__.requestOpenExtension(extensionId, params);

};

Could you please suggest me the proper way to open that project panel once again if end user closes project panel and I need to reopen by API?

As well What should be the extensionId for that project panel?

proapi.png

PPro Version: 12.0.0

TOPICS
SDK

Views

890

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 29, 2019 Apr 29, 2019

You can't open/close/reopen built-in panels like the project panel via CEP, you can only open/close CEP panels like this:

var csi = new CSInterface();

// open any extension

csi.requestOpenExtension('panelID', {});

// you can only close the current extension

csi.closeExtension();

If you want to close extensions that are yours other than the current one, look into Vulcan messages. With that you could send a close message from one panel to another.

Votes

Translate

Translate
New Here ,
Apr 29, 2019 Apr 29, 2019

Copy link to clipboard

Copied

You can try to find the panel extension id from this return value:

window.__adobe_cep__.getExtensions

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2019 Apr 29, 2019

Copy link to clipboard

Copied

LATEST

You can't open/close/reopen built-in panels like the project panel via CEP, you can only open/close CEP panels like this:

var csi = new CSInterface();

// open any extension

csi.requestOpenExtension('panelID', {});

// you can only close the current extension

csi.closeExtension();

If you want to close extensions that are yours other than the current one, look into Vulcan messages. With that you could send a close message from one panel to another.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines