Page 1 of 1
Launching multiple items on Firefox
Posted: 27 Apr 2012 18:12
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?
Re: Launching multiple items on Firefox
Posted: 27 Apr 2012 20:43
by highend
get("SelectedItemPathNames", "|")
reformat and store that list (see "formatlist()") in a variable and use that in the run command.
Re: Launching multiple items on Firefox
Posted: 28 Apr 2012 01:06
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...