comma in script wizard?

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
mimeryme
Bronze Member
Bronze Member
Posts: 107
Joined: 2003 Apr 29, 18:38
Location: Brooklyn
Contact:

comma in script wizard?

Post by mimeryme »

How can I input a comma in the template text field and have it count for the script?

When I put a comma (needed in an argument) the preview displays a line break where the comma is. I tried $2C (as in the Find Text dialog), but that doesn't work either.

What I'm trying to do is use IrfanView's resample in a batch, whose argument is: /resample=(x,y)

edit: I saw this in the help file:
Command templates may contain multiple comma-separated commands as the above snapshot illustrates.
So, I understand why the comma is special.

I also tried encapsulating the argument in quotations to no avail.
User avatar
nikos
Site Admin
Site Admin
Posts: 15793
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

this is a problem with no solution
in scripts $ followed by number is an automatic counter so you can't use the $2C escape

a workaround would be to use something weird in place of the comma, e.g. %%% or something that you don't use normally. Then edit the generated script and do a global replace of "%%%" for ","

i'll see if any escape for the comma can be worked out
User avatar
nikos
Site Admin
Site Admin
Posts: 15793
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

ok, from now on two commas in a row will mean a single real comma, escaping the separator
User avatar
mimeryme
Bronze Member
Bronze Member
Posts: 107
Joined: 2003 Apr 29, 18:38
Location: Brooklyn
Contact:

Post by mimeryme »

Thank you for the interim solution and the change nikos. :D
Post Reply