Hi
I have a simple script in my catalog which should copy the file name to the clipboard but instead it copies the folder name
::#102
Any ideas
Regards
Script not producing expected results
-
RalphM
- Posts: 2143
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Script not producing expected results
The file loses focus when you click your catalog item thus copying the parent folder name to the clipboard.
To prevent this, either:
1. Use Ctrl+Shift+P or
2. Create a User Button for it or
3. Make your catalog script a multiline script as follows:Where the first command puts the focus back to the list.
Notice the spaces at the beginning which are needed for at least the first line, so best select all in the code window and paste it into your catalog item as shown below: This worked for me as intended.
To prevent this, either:
1. Use Ctrl+Shift+P or
2. Create a User Button for it or
3. Make your catalog script a multiline script as follows:
Code: Select all
focus l;
#102Notice the spaces at the beginning which are needed for at least the first line, so best select all in the code window and paste it into your catalog item as shown below: This worked for me as intended.
To see the attached files, you need to log into the forum.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
XYplorer Beta Club