Exporting Favorites (bookmarks) from the Help browser for migration

I'm about to step up from R2010b to R2012b. Last time I did this, all my bookmarks to help browser pages went bye-bye. I've been dredging through my C drive in the hope of finding these saved in some XML file, but that seems a monumental task. Does anyone know how to export & re-import these during migration to a new version?

 Respuesta aceptada

Wendy Fullam
Wendy Fullam el 1 de Oct. de 2012
There should be a “shortcuts.xml” file in your prefdir, in which Help browser bookmarks are stored.
Prefdir can be found by typing “prefdir” at the MATLAB command prompt.

4 comentarios

That's not quite correct in 2012b. According to Image Analyst's comment (16 Sep 2012 at 21:12:
‘Here's the way to do it for R2012b:
Evidently the new shortcuts XML file MUST be called shortcuts_2.xml, NOT shortcuts.xml like it used to be called.
1. Type prefsdir on the command line, then in Windows Explorer (or similar for your other operating system), go to that folder.
2. Copy your shortcuts.xml file from your old MATLAB version "prefsdir" folder to the new "prefsdir" folder.
3. Rename the existing, new shortcuts_2.xml to shortcuts_2_original.xml.
4. Rename your shortcuts.xml to shortcuts_2.xml.
5. Restart MATLAB R2012b and all your old short cuts will be there.'
Follow that discussion for details.
Thank you. It was interesting to see that the shortcuts.xml in my prefdir gave paths to help pages slightly different than what appeared for a given page after invoking View->Page Location. That would show a typical path as:
docroot '/techdoc/ref/<topic>.html'
except that no such file existed in that directory. The shortcuts.xml file revealed that the real path was
docroot '/techdoc/help.jar!/<topic>.html
The 2010b Help topic "Using the Help Browser" also notes that favorites cannot be migrated between versions of Matlab. I take this as a caveat in case some old bookmarks are broken in a newer version, but it would have been more useful to have included the above procedure along with a caveat like "The following might help you migrate your favorites, but there's no guarantee theyy'll all be functional."
Shahed
Shahed el 25 de Mayo de 2013
Editada: Shahed el 23 de Jul. de 2013
That is true you are going to run into the broken link issue if you import Matlab Favorites.
However, you can work around the issue. On how to work around the issue, please refer to the following line: http://www.mathworks.com/matlabcentral/answers/46459-how-to-backup-my-matlab-favorites
Thanks for the update, Shahed.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Desktop en Centro de ayuda y File Exchange.

Productos

Preguntada:

Jim
el 26 de Sept. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by