Is there a way to get the addresses of each and every currently open help/documentation browser tab?

3 ビュー (過去 30 日間)
PS
PS 2021 年 8 月 30 日
コメント済み: PS 2021 年 10 月 12 日
I frequently have to reboot and have quite a few documentation browser tabs open that I'll want to reopen once I get MATLAB opened again. My goal is to automate the process below.
Edit: I failed to clarify that it is the querying step that I can't do. Saving return values and then iteratively restoring documentation pages using "doc <cmdName>" straightforward enough.
Using finish.m:
  1. Query MATLAB for what help browser tabs are currently open <-- How can you do this?
  2. Save the returned addresses or topic names to a file
Using startup.m:
  1. Open help browser
  2. Open the previously created file and iterate through it, restoring the help browser tabs one by one
  2 件のコメント
Rik
Rik 2021 年 8 月 31 日
I don't know if it is possible to query the opened tabs (you might need Java tricks that depend on your Matlab version), but opening the tabs can probably be done with the doc function.

サインインしてコメントする。

回答 (1 件)

Mike Susedik
Mike Susedik 2021 年 9 月 28 日
編集済み: Mike Susedik 2021 年 9 月 28 日
first a comment
I have the same goals as Peyton. I'd like to reboot and reopen the same help browser tabs, similar to what is done with ".m" files in the editor. Maybe this is a product suggestion for future release.
A possible answer -
I did notice if the command is saved as favorite in the browser the command to reopen the file is made available when the save comes up. ie, "web(fullfile(docroot, 'matlab/ref/rmmissing.html?s_tid=doc_srchtitle'))" will reopen the "rmmissing" help tab again. A brute force method might be to make the command a favorite, copy the web command from the save popup window and put it in a ".m" file and run it. I think that would work, just clumsy..
  1 件のコメント
PS
PS 2021 年 10 月 12 日
編集済み: PS 2021 年 10 月 12 日
I think using "doc <cmdName>" would be the more efficient method

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by