PFA - multiple actions for given extension?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

PFA - multiple actions for given extension?

Post by SkyFrontier »

Current PFA behavior is:
- if a PFA'ed extension has more than an action attached to it, have a default one and the others will be accessible when CTRL+ALT+ENTER on them.

BUT I'd like to have a common action applied to ANY (with or without extension) file, THEN the (now 'second default') next action applied without any use of external script files or any other complicated method (incorporating a code to handle this would be an option, except it would have to contain *each and every other desired PFA* = unmanageable...). Is this possible with current resources PFA offers, and I'm maybe missing something here?

if not

Don: can you do something about it...?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: PFA - multiple actions for given extension?

Post by binocular222 »

The first line of PFA should look like this:

Code: Select all

*>::load "myscript"
Then you can do anything in myscript
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: PFA - multiple actions for given extension?

Post by SkyFrontier »

Hi, binocular.
No, it just intercepts the scripted action, performs it then stops, ie, won't execute a next PFA for a given extension *nor open the file in any way*.

Plus, it just works if I have something to feed 'load' with (ie, a file stored under <xyscripts>, which I am trying to avoid.

"do anything in myscript" (if I understood you right) will fall in the "*all* PFA actions must be scripted, then - which is (despite possible) not an alternative, either (because it would make me loose the convenient way to manage PFA under its great interface).

Thanks for trying...
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply