Page 1 of 1

Script not producing expected results

Posted: 28 Jun 2019 02:54
by cldcp00
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

Re: Script not producing expected results

Posted: 28 Jun 2019 04:08
by RalphM
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:

Code: Select all

 focus l; 
 #102
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:
PicPick_451.jpg
This worked for me as intended.