Page 1 of 1
.
Posted: 23 Sep 2022 20:46
by Norn
.
Re: Toolbar button cannot run script when filename contains "{"
Posted: 24 Sep 2022 08:38
by admin
Works fine here.
1) Describe "Cannot run" in more detail.
2) Show the full definition of the button. (Right-click the Clear button in Edit User Button and select Copy Snippet.)
Re: Toolbar button cannot run script when filename contains "{"
Posted: 24 Sep 2022 13:10
by Norn
Norn wrote: ↑23 Sep 2022 20:46
I never put {} in the filename.
Code: Select all
//Open in new tab
foreach($item, "<get selecteditemspathnames>", "<crlf>") {
if(exists($item) == "1") {$path = gpc($item, "path"); tab("new", $path); selectitems $item;
} else {
tab("new", $item);}
}
I copied this script and it works now.
