Skip to main content
Inspiring
December 13, 2018
解決済み

Detect whether bookmarks panel is open

  • December 13, 2018
  • 返信数 3.
  • 916 ビュー

I have JavaScript that runs best with the bookmarks panel open. I know app.execMenuItem("ShowHideBookmarks"); toggles the bookmarks panel but I've not been able to find a way to detect whether it's already open.

Is there one?

Thank you

このトピックへの返信は締め切られました。
解決に役立った回答 try67

Yes, you can use: this.pane

It will return "B" when the bookmarks panel is open, and something else if it's not. For example, "T" if the pages thumbnails panel is open, or "N" if no panels are open.

返信数 3

try67
Community Expert
try67Community Expert解決!
Community Expert
December 13, 2018

Yes, you can use: this.pane

It will return "B" when the bookmarks panel is open, and something else if it's not. For example, "T" if the pages thumbnails panel is open, or "N" if no panels are open.

KenWK作成者
Inspiring
December 18, 2018

Thanks try, worked great. Where would that info be? Somewhere in the dev kit, maybe? I didn't see it in the api reference.

Thanks again

try67
Community Expert
Community Expert
December 18, 2018

It's an undocumented feature, actually, so use it with care.