Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Need a Command Line to open Folder in Bookmarks panel

  • 11 replies
  • 2 have this problem
  • 80 views
  • Last reply by Muhanoid

more options

I have a folder called "Comics". It contains 48 bookmarks. Some of them are DeviantArt links, some of them are static comic page links like "thiscomic.com/page=100". Both of them frequently update and I manually copy the link from address bar and update the bookmark.

I thought that using command prompt with command line [CODE] "D:\Software\Mozilla Firefox\firefox.exe" -new-window "http://www.tumblr.com/following" TIMEOUT /T 10 "D:\Software\Mozilla Firefox\firefox.exe" "next comic" /CODE would solve the problem, until I realized that I need to edit THAT file then. And it would be out of sync with the folder I'm using.

I could either do the double work of updating the folder contents AND the .bat file contents or throw that idea away and keep clicking the folder to manually open all tabs (with the warning). Which actually negates the time saving that I'd have if it all opened automatically.

I could try using mouse macro, but if I move anything, it'd become wrong and I'd need to re-build the macro. Command Prompt has more stability in this case.

I have a folder called "Comics". It contains 48 bookmarks. Some of them are DeviantArt links, some of them are static comic page links like "thiscomic.com/page=100". Both of them frequently update and I manually copy the link from address bar and update the bookmark. I thought that using command prompt with command line [CODE] "D:\Software\Mozilla Firefox\firefox.exe" -new-window "http://www.tumblr.com/following" TIMEOUT /T 10 "D:\Software\Mozilla Firefox\firefox.exe" "next comic" [/CODE] would solve the problem, until I realized that I need to edit THAT file then. And it would be out of sync with the folder I'm using. I could either do the double work of updating the folder contents AND the .bat file contents or throw that idea away and keep clicking the folder to manually open all tabs (with the warning). Which actually negates the time saving that I'd have if it all opened automatically. I could try using mouse macro, but if I move anything, it'd become wrong and I'd need to re-build the macro. Command Prompt has more stability in this case.

All Replies (11)

more options

How many tabs / windows do you want opened? Do you want these opened each time the browser is opened?

more options

49 tabs in 1 NEW window. My browser is almost never closed.

Modified by Muhanoid

more options

There are several ways to do this.

  • 1 Create a separate bookmarks folder. Place all entries you want to open in this folder. When you want, right click the folder and select Open All In Tabs.
  • 2 Open the browser and set up the tabs / windows the way you want. Once you are done, open another window. Type about:preferences#general<enter> in the address bar. There are two settings;
  • When Firefox Starts

When the browser is started, what do you want to display. Many of us choose Show My Home Page.

  • Home Page

When a new page is opened, what do you want displayed.

  1. Use Current Page. Use what ever page(s) are open at that time.
  2. Use Bookmark
  3. Restore To Default. about:home shows a Mozilla home page with tools.

You can use any of these that you wish;

about:home (Firefox default home page), about:newtab (shows the sites most visited), about:blank (a blank page),

or you can enter any web page or about: page you want.

more options

I don't close Firefox most of the times. And if I close it, it's to increase performance. So in the morning Firefox is still open with some tabs and windows in it. First solution would mean I need to end everything I have been doing and memorize / save locations on pages I'll need next time they are opened.

Because closing firefox results in pages with books in them open at the beginning for some websites. Which is unfortunate.

The solution looks good, if Firefox would be closed and empty at the end of the day.

If firefox has crashed, I have it set to "When Firefox starts open pages open last time" to have guarantee that I wouldn't lose track of what I was doing. I can be an airhead when I'm sick, but that never stopped me from doing important stuff.

I know it's using PC as a crutch, but I do use it like that when incapable of doing everything myself.


Thank you for your suggestion. I will see how I can rework my habits / find a workaround for your solution to be valid.

I would really appreciate if you could find more solutions. Thank you.

more options

If firefox has crashed

Sometimes not everything gets restored. Better to use backups. As to books, is there a way to mark your current location, or you can write down the current chapter.

more options

FredMcD said

If firefox has crashed Sometimes not everything gets restored. Better to use backups. As to books, is there a way to mark your current location, or you can write down the current chapter.

Knowing the chapter is easy. It's the "last one available" or "check the latest one that was marked as read before Firefox crashed / real life happened".

Current chapter length: 12,552 words. Other story: 16,343.

"Way to mark your current location". That would be useful! Please, tell me how. Because, as you see I might be stopped at any moment of the chapter and it's, sometimes, hard to find where did I stop.


Back to topic: Current crutch solution: MiniMouseMacro that clicks on "Comics" folder at the panel and then closes itself with CMD. Everything is launched from T-Clock with batch file.

Current solution fells like I'm trying to build a steam engine to lift a bucket of water. It works, but gosh, it's clunky!

more options

I know that feeling.

There are several bookmark add-ons that can record the current page location that you can try. Here is one of them;

Advanced bookmarks Add-on {web link} This addon will let you to save a bookmark with position in web page, or with select text that allow you to open the page and automatically scroll to position, or select text.

NOTE: This add-on is NOT all that useful. While it does do its job of creating bookmarks based on web page location, the bookmark is stored in such a way that there is only ONE way to get at them. Also, you can NOT share these bookmarks with others.

more options

A possibility would be using an extension (keyconfig, PrefBar) that allows to run JavaScript with chrome prvileges. This command opens the Library with the Bookmarks Menu folder selected:

PlacesCommandHook.showPlacesOrganizer('BookmarksMenu');

I see code like this:

PlacesCommandHook.showPlacesOrganizer([ "BookmarksMenu", target._placesNode.itemId ]);

See these file (selectLeftPaneContainerByHierarchy, leftPaneQueries):

Some test files:

more options

Okay. Finally got to doing it. But I'm lost at the links. There is too much text and just copy-pasting the code doesn't do anything. As in the code doesn't work.

PlacesCommandHook.showPlacesOrganizer([ 'BookmarksToolbar' ]); This has opened Bookmarks Toolbar where the folder is located. Wonderful, that's great.

Now, can you point me in the direction where I can learn some things about Java enough to understand your answer? That'd really help.

more options

At least this code should work to open the Library with the Bookmarks Menu selected:

PlacesCommandHook.showPlacesOrganizer('BookmarksMenu');

The other code would need a folder ID and I don't know how to find this ID and what it would look like (a number; moz_places.id).

more options

cor-el said

At least this code should work to open the Library with the Bookmarks Menu selected: PlacesCommandHook.showPlacesOrganizer('BookmarksMenu');

Yes, that does exactly what you say and it's great!

PlacesCommandHook.showPlacesOrganizer([ 'BookmarksToolbar' ]); Same place, but toolbar.

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Places_Developer_Guide This seems like a good place to... End up. I will keep trying and will update as I go. Eventually uploading step-by-step of how to do it, if someone doesn't do it before I do.