Page 1 of 1

PFA - multiple actions for given extension?

Posted: 05 Jan 2013 12:45
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...?

Re: PFA - multiple actions for given extension?

Posted: 05 Jan 2013 13:22
by binocular222
The first line of PFA should look like this:

Code: Select all

*>::load "myscript"
Then you can do anything in myscript

Re: PFA - multiple actions for given extension?

Posted: 05 Jan 2013 13:42
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...