Page 1 of 1

pfaitem & pfaitems ??

Posted: 07 Sep 2016 13:31
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?

Re: pfaitem & pfaitems ??

Posted: 07 Sep 2016 14:08
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

Re: pfaitem & pfaitems ??

Posted: 07 Sep 2016 14:20
by autocart
ok, cool, thx for the quick and good explaination, TQ