Launching multiple items on Firefox

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Launching multiple items on Firefox

Post by neutrox »

I can launch several items on firefox.

Code: Select all

run "E:\Firefox Portable VIEWER\FirefoxPortable.exe" "item 1" "item 2";
But how can I convert that into a script which will do for the currently selected items, no matter how much?

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Launching multiple items on Firefox

Post by highend »

get("SelectedItemPathNames", "|")
reformat and store that list (see "formatlist()") in a variable and use that in the run command.
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Launching multiple items on Firefox

Post by PeterH »

neutrox wrote:I can launch several items on firefox.

Code: Select all

run "E:\Firefox Portable VIEWER\FirefoxPortable.exe" "item 1" "item 2";
But how can I convert that into a script which will do for the currently selected items, no matter how much?
Isn't this wrong syntax? I'd expect it to be:

Code: Select all

  run '"E:\Firefox Portable VIEWER\FirefoxPortable.exe" "item 1" "item 2"';
  run """E:\Firefox Portable VIEWER\FirefoxPortable.exe"" ""&item1"" ""&item2""";  // alternative if variables are concerned
Help says:
Names with blanks must be quoted. Note that the quotes have to be wrapped in single-quotes because an argument's outer quotes are auto-stripped by XY's script parser!
And an example shown is:

Code: Select all

  run """C:\Program Files (x86)\WinMerge\WinMergeU.exe"" /e /r ""<get path 1>"" ""<get path 2>""";
Both are variants I understand...

Post Reply