Buttons: which params (%N, ...) add quotes automatically?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
d125q
Junior Member
Junior Member
Posts: 14
Joined: 2014-06-13, 11:59 UTC

Buttons: which params (%N, ...) add quotes automatically?

Post by *d125q »

Hi,

I recently made a custom button to convert the file under cursor to JPG using IrfanView. The details of the button are the following:

Command:[face=courier] "C:\Program Files (x86)\IrfanView\i_view32.exe"[/face]
Paramters: [face=courier]%P%N /convert="%P%O.jpg"[/face]

I think it works OK. However, at first I had [face=courier]"%P%N" /convert="%P%O.jpg"[/face] (notice the quotes in [face=courier]"%P%N"[/face]), and later found out that [face=courier]%P%N[/face] automatically adds quotes when needed, but not [face=courier]%P%O[/face], so I had to keep the quotes there.

Is this behavior documented somewhere? All the help file says is that [face=courier]%P%S[/face] adds quotes automatically, but that one works on all selected files, not just the file under the cursor. Do any other parameters behave the same way? I also noticed that [face=courier]%N[/face] and [face=courier]%P[/face] don't add quotes when they're alone by themselves, only when they're together. Is this true?

Thanks.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

To avoid automatic quoting just use

Code: Select all

"%P%O.%E"
instead of %P%N. It can be quite annoying.
User avatar
d125q
Junior Member
Junior Member
Posts: 14
Joined: 2014-06-13, 11:59 UTC

Post by *d125q »

That's a rather nice workaround to force quoting, but I'd still appreciate an answer to my original questions (which parameters--and when exactly--exhibit this behavior?).

Cheers.
User avatar
nsp
Power Member
Power Member
Posts: 1954
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

d125q wrote:That's a rather nice workaround to force quoting, but I'd still appreciate an answer to my original questions (which parameters--and when exactly--exhibit this behavior?).

Cheers.
it works as design.. you can give a look to TC help Clo!. (search for quote or guillemot)
User avatar
d125q
Junior Member
Junior Member
Posts: 14
Joined: 2014-06-13, 11:59 UTC

Post by *d125q »

nsp wrote:it works as design.. you can give a look to TC help Clo!. (search for quote or guillemot)
Thanks. This is a great article.
Post Reply