.

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Norn
Posts: 508
Joined: 24 Oct 2021 16:10

.

Post by Norn »

.
To see the attached files, you need to log into the forum.
Last edited by Norn on 30 Jan 2025 20:09, edited 1 time in total.
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Toolbar button cannot run script when filename contains "{"

Post 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.)

Norn
Posts: 508
Joined: 24 Oct 2021 16:10

Re: Toolbar button cannot run script when filename contains "{"

Post 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. :shock:
Windows 11 24H2 @100% 2560x1440

Post Reply