Page 1 of 1

scripting-bug with PFA

Posted: 09 Dec 2013 13:30
by autocart
I tried to couple portable file associations with scripting, as mentioned in this post (http://www.xyplorer.com/xyfc/viewtopic. ... 742#p97049):
"Load Search" C:\....\XYplorer-data\FindTemplates\*.ini>::LoadSearch "<curbase>", 'rlec';
Then I reference the ini-file by way of the catalog.
On clicking it in the catalog the search opens fine.
If I leave the search tab open, though, and (happen to) click the ini-file in the catalog again, then I get the error as shown in the picture.

Re: scripting-bug with PFA

Posted: 10 Dec 2013 09:49
by admin
Sorry, but I have not time to setup this scenario. Can you somehow isolate the error? The problem seems to be that <curbase> is resolved to nothing because there is no current file selected.

Re: scripting-bug with PFA

Posted: 10 Dec 2013 14:44
by Stefan
@autocart


There is one little difference between your code, guessed from screenshot, and "TheQwerty" code (linked by you)

TheQwerty wrote:
1. PFA/POM allow you to use paths in your pattern meaning you could configure XY such that opening an INI file within the FindTemplate directory would perform a LoadSearch script:

Code: Select all

"Load Search" C:\Zen\Apps\XYplorer\Data\FindTemplates\*.ini>::LoadSearch "<curbase>", 'rle';
You'll need to replace C:\Zen\Apps\XYplorer\Data with the real location of your <xydata> since it seems XY-variables don't work here.



I don't have tested it myself, but the asterisk (*) may be mandatory here?


.

Re: scripting-bug with PFA

Posted: 10 Dec 2013 14:56
by autocart
I do have an asterisk in my line of code in the PFA-definition.

Re: scripting-bug with PFA

Posted: 13 Dec 2013 07:57
by autocart