Need help setting up CFA for specific path

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MBaas
Posts: 690
Joined: 15 Feb 2016 21:08

Need help setting up CFA for specific path

Post by MBaas »

I'd like to set up a CFA that is valid in one folder only - isn't that possible?

|"Bibel importieren|:foretab" \git\bible_databases\formats\json\*.json > "python import_bible_database.py <curitem>"


When I open CFAs while being on a .json in that folder, that item is not suggested. What am I missing?
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

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

Re: Need help setting up CFA for specific path

Post by admin »

That's not possible. CFAs are global.

Wrong! See below...

eil
Posts: 1880
Joined: 13 Jan 2011 19:44

Re: Need help setting up CFA for specific path

Post by eil »

Though for some reason i apparently have same false idea, like somebody in the past showed CFA working for the specific path(don't remember where i saw that), maybe this theoretical hint could work instead: CFA that uses a script, which instead checks what is the location and selects proper app to work with that file type.
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Need help setting up CFA for specific path

Post by admin »

Indeed, you are right!

CFAs can be defined for specific paths, e.g.:
C:\Users\Donald\Desktop\Test\*.txt>C:\Users\Donald\AppData\Local\Programs\EmEditor\EmEditor.exe

MBaas
Posts: 690
Joined: 15 Feb 2016 21:08

Re: Need help setting up CFA for specific path

Post by MBaas »

Great! But why isn't it working for me then?
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

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

Re: Need help setting up CFA for specific path

Post by admin »

\git\bible_databases\formats\json\ does not look like a valid path.

MBaas
Posts: 690
Joined: 15 Feb 2016 21:08

Re: Need help setting up CFA for specific path

Post by MBaas »

Even with the drive-specification it doesn't show up on the file C:\Git\bible_databases\formats\json\YLT.json
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

eil
Posts: 1880
Joined: 13 Jan 2011 19:44

Re: Need help setting up CFA for specific path

Post by eil »

@MBaas you need to show the full CFA line you're trying to use, cause your initial example in the first message couldn't work for sure(no proper paths there).
Win 7 SP1 x64 100% 1366x768|1900x1080

MBaas
Posts: 690
Joined: 15 Feb 2016 21:08

Re: Need help setting up CFA for specific path

Post by MBaas »

It hasn't changed muched - I just added the driver letter:
|"Bibel importieren|:foretab" C:\Git\bible_databases\formats\json\*.json>"python import_bible_database.py <curitem>"
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

eil
Posts: 1880
Joined: 13 Jan 2011 19:44

Re: Need help setting up CFA for specific path

Post by eil »

Your pattern contains: Name| Icon| specific path extension > ... where is the path for app to open json? For the very least XY doesn't know where is that .py script. Plus i'm not sure(i may be wrong here) if XY can handle opening item with non-executable but "some" script + arguments, and all that in CFA.
More confident local scripters would probably know better.
Win 7 SP1 x64 100% 1366x768|1900x1080

MBaas
Posts: 690
Joined: 15 Feb 2016 21:08

Re: Need help setting up CFA for specific path

Post by MBaas »

I tweaked it a bit and added the exact path of the py script (though i don't think that would have prevented XY from showing it) and suddenly it is working!

|"Bibel importieren|:foretab" C:\Git\bible_databases\formats\json\*.json>::run"""%TCC%"" /C python c:\git\BibleImport\import_bible_database.py <curitem>";goto "c:\Git\BibleImport\output";

Ok, tbh - I also noticed the checkbox wasn't set :oops: I don't know when and why this happened - but I guess that was the reason all the time. I need new glasses!
Thanks for your help!
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

Post Reply