PFA & Scripting
Posted: 06 Apr 2008 20:51
I think there might be the need for another variable in scripting, one that might only be useful when used with PFA, but still one that - in such case - seems to me to be required.
I'm still not sure about what name would be best, so I'll stick with "pfa", simply. Maybe all the usual, so <pfaitem>, <pfaname>, <pfabase> and <pfaext>, or at the very least <pfaitem>
Those variables would relate to the item opened by the PFA. What I mean is this, say you have a PFA assigned for *.txt to a script, well then you simply cannot do anything, because <curitem> (or <focitem>) will always be the same one !
Come to think of it, the best would actually be an option to decide how the script will be executed : single, or multi- instance.
- Single: with use of <pfaitem> going through every selected item
- Multi: only triggered once even for multiple selections, and deal with <items> (and <item1> & <item2>)
I would think the easiest might be to say that one mode (single) is used with the standard prefix ( :: ) while the other (multi) comes with a "new" prefix ( ::: )

-----
Unrelated: there's still a bug with <curitem> -- Try this:
- go to a new folder, with at least one item
- make a selection using mouse only, no keys, and by drawing a rectangle from empty area (ie. no click on any item)
- ::msg <curitem> gets a blank/empty string, even with one item both selected & focused !
I'm still not sure about what name would be best, so I'll stick with "pfa", simply. Maybe all the usual, so <pfaitem>, <pfaname>, <pfabase> and <pfaext>, or at the very least <pfaitem>
Those variables would relate to the item opened by the PFA. What I mean is this, say you have a PFA assigned for *.txt to a script, well then you simply cannot do anything, because <curitem> (or <focitem>) will always be the same one !
Come to think of it, the best would actually be an option to decide how the script will be executed : single, or multi- instance.
- Single: with use of <pfaitem> going through every selected item
- Multi: only triggered once even for multiple selections, and deal with <items> (and <item1> & <item2>)
I would think the easiest might be to say that one mode (single) is used with the standard prefix ( :: ) while the other (multi) comes with a "new" prefix ( ::: )
-----
Unrelated: there's still a bug with <curitem> -- Try this:
- go to a new folder, with at least one item
- make a selection using mouse only, no keys, and by drawing a rectangle from empty area (ie. no click on any item)
- ::msg <curitem> gets a blank/empty string, even with one item both selected & focused !