pfaitem & pfaitems ??

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
autocart
Posts: 1391
Joined: 26 Sep 2013 15:22

pfaitem & pfaitems ??

Post by autocart »

Hi all,
The help file says:
help file wrote:Scripting with Portable File Associations only
<pfaitem> The item (full path) the opening application or script in a Portable File Association is associated with.
<pfaitems> The items (full path) that are being opened via PFA.
and
help file wrote:The special variable <pfaitem>
In PFA scripts the temporary variable <pfaitem> is supported. It resolves to the item (full path) the opening application or script in a PFA is associated with. Only in a script called via PFA <pfaitem> can be used. After the PFA is processed the variable is reset to nothing.
I could not find much 100% clear info in the forum either and when I try it myself it seems that these two variables contain identical values.

Do they really contain identical values?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: pfaitem & pfaitems ??

Post by TheQwerty »

<pfaitems> = The item(s) to be opened.
<pfaitem> = The item used to determine which PFA entry to use when opening <pfaitems>.

When opening a single item they will be the same - the difference comes when opening multiple items.

See also: viewtopic.php?f=5&t=14715

autocart
Posts: 1391
Joined: 26 Sep 2013 15:22

Re: pfaitem & pfaitems ??

Post by autocart »

ok, cool, thx for the quick and good explaination, TQ

Post Reply