Author Topic: What is a command for opening firefox bookmarks in the toolbar  (Read 4977 times)

Agent86

  • Jr. Member
  • **
  • Posts: 55
Hi,

Firefox allows to right click a bookmark folder and open all bookmarks in a particular folder with all new tabs.

Is there some such command that would open all these in firefox ?

Please advise
Thanks

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4786
  • RTFM
Re: What is a command for opening firefox bookmarks in the toolbar
« Reply #1 on: May 07, 2019, 09:43:20 AM »
You could navigate the menus using the keyboard to achieve the same thing, E.G.
Code: [Select]
Press Left Alt+B keys and hold for 0,06 seconds and release
Start Loop : Repeat 5 Times
Press Down key and hold for 0,01 seconds and release
End Loop
Press Menu key and hold for 0,01 seconds and release
Press Down key and hold for 0,01 seconds and release
Press Enter key and hold for 0,01 seconds and release

You might want to consider wrapping that in
Code: [Select]
Fully restrict mouse movement
Unrestrict mouse movement
so you don't accidentally move the mouse while it's running and select something else.


Otherwise you'd have to use something like
Code: [Select]
Run application 'firefox' -with parameters '-new-tab "VoiceAttack.com"'
Run application 'firefox' -with parameters '-new-tab "forum.VoiceAttack.com"'
But then you'd need to modify the command to stay in sync with your bookmarks. It doesn't seem to open in private browsing windows either.

Agent86

  • Jr. Member
  • **
  • Posts: 55
Re: What is a command for opening firefox bookmarks in the toolbar
« Reply #2 on: May 18, 2019, 07:49:43 AM »
You could navigate the menus using the keyboard to achieve the same thing, E.G.
Code: [Select]
Press Left Alt+B keys and hold for 0,06 seconds and release
Start Loop : Repeat 5 Times
Press Down key and hold for 0,01 seconds and release
End Loop
Press Menu key and hold for 0,01 seconds and release
Press Down key and hold for 0,01 seconds and release
Press Enter key and hold for 0,01 seconds and release

You might want to consider wrapping that in
Code: [Select]
Fully restrict mouse movement
Unrestrict mouse movement
so you don't accidentally move the mouse while it's running and select something else.


Otherwise you'd have to use something like
Code: [Select]
Run application 'firefox' -with parameters '-new-tab "VoiceAttack.com"'
Run application 'firefox' -with parameters '-new-tab "forum.VoiceAttack.com"'
But then you'd need to modify the command to stay in sync with your bookmarks. It doesn't seem to open in private browsing windows either.

Nice thanks,

What do you mean sync with your bookmarks ?

Also what about opening multiple bookmarks that are in a toolbar folder that firefox would normally open by middle mouse clicking the folder or right clicking then open all tabs ?

Can this be done with those parameters too ?

Thanks



Agent86

  • Jr. Member
  • **
  • Posts: 55
Re: What is a command for opening firefox bookmarks in the toolbar
« Reply #3 on: May 18, 2019, 08:19:32 AM »
Quote
Run application 'firefox' -with parameters '-new-tab "ebay.com"'

For some reason when I open tabs this way my previous commands to close firefox via "ctrl + left shift + W" do not close firefox.

When I open firefox manually I can close firefox, I can manually open many tabs and close firefox, but when I open these new tabs using the method above firefox cannot close.

Is this strange or expected ?

Thanks

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4786
  • RTFM
Re: What is a command for opening firefox bookmarks in the toolbar
« Reply #4 on: May 18, 2019, 12:44:20 PM »
What do you mean sync with your bookmarks ?

Also what about opening multiple bookmarks that are in a toolbar folder that firefox would normally open by middle mouse clicking the folder or right clicking then open all tabs ?

Can this be done with those parameters too ?
Firefox does not offer built-in option to open bookmarks using the command line, either individual ones or folders.

This means you're just opening a static URL, so if your bookmarks change, the URL VoiceAttack sends to Firefox must be manually changed to match ("synchronized").


Quote
Run application 'firefox' -with parameters '-new-tab "ebay.com"'

For some reason when I open tabs this way my previous commands to close firefox via "ctrl + left shift + W" do not close firefox.

When I open firefox manually I can close firefox, I can manually open many tabs and close firefox, but when I open these new tabs using the method above firefox cannot close.

Is this strange or expected ?
I can't reproduce that on my machine. How are you targeting the window? I found I had to use "*Firefox" so it'd use the window title; "firefox" for the process name does not work at all(likely because it's running multiple processes).

Agent86

  • Jr. Member
  • **
  • Posts: 55
Re: What is a command for opening firefox bookmarks in the toolbar
« Reply #5 on: May 18, 2019, 01:57:48 PM »
Yes, thanks

Targeting the window title actually worked for me with wildcards via *FireFox*
Closes firefox with simple hotkeys commands as previous including the newly added tabs.

Thanks