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
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;
#102
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.
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)