The script:
Code: Select all
run ""<xy>" /new";Bug or Operator Error?
Thanks,
Jeff
Code: Select all
run ""<xy>" /new";Code: Select all
run """<xy>"" /new";I guess this applies to each argument in the expression, not just the whole expression. Hopefully I'll remember this for next time.Names with blanks must be quoted. Note that the quotes have to be wrapped insingle-quotesdouble-quotes because an argument's outer quotes are auto-stripped by XY's script parser!
Code: Select all
::$xy = "<xy> /new"; run $xy;Code: Select all
"<xy>" /newSorry: this isn't the sameklownboy wrote:Hi Jeff, many here get around the quoting "fun" by setting up the command in a variable and by doing something like this...which will work in the Address Bar.Code: Select all
::$xy = "<xy> /new"; run $xy;
I think it's right: <xy> must not be quoted.klownboy wrote:I see what you're saying, but I though Don just made a change (within the past couple of weeks) in XY's built in variables not requiring them to be quoted at all (see v14.30.0301 notes).
Code: Select all
$g_IrfanPath="d:\graphics\irfanView\i_view32.exe";
run """$g_IrfanPath"" $file /aspectratio /jpgq=100 /crop=($x_crop, $y_crop, $width, $height) /convert=$path\". $base ."_$xy.$ext", , 2,0;
I think your wording doesn't exactly fit the statementsklownboy wrote:Thanks PeterH, I saved this post in my "Fun with XY Quoting" Favorites folder.I do typically double quote in scripts even when it's an assigned variable as an example,
but I had tested what I had posted earlier, it worked and never thought about spaces (obviously I don't have spaces in my XY command line). Now maybe the above isn't totally correct either but it has worked for me for last couple of years.Code: Select all
$g_IrfanPath="d:\graphics\irfanView\i_view32.exe"; run """$g_IrfanPath"" $file /aspectratio /jpgq=100 /crop=($x_crop, $y_crop, $width, $height) /convert=$path\". $base ."_$xy.$ext", , 2,0;
Thanks again,
Ken
Code: Select all
$g_IrfanPath="""d:\graphics\irfanView\i_view32.exe""";
run "$g_IrfanPath $file /aspectratio /jpgq=100 /crop=($x_crop, $y_crop, $width, $height) /convert=$path\". $base ."_$xy.$ext", , 2,0;
Code: Select all
$g_IrfanPath='"d:\graphics\irfanView\i_view32.exe"';
run "$g_IrfanPath $file /aspectratio /jpgq=100 /crop=($x_crop, $y_crop, $width, $height) /convert=$path\". $base ."_$xy.$ext", , 2,0;
I'd sure believe it. I went through dozens of iterations recently trying to get a script-generated.m3u playlist to open in Mp3tag. I just kept adding quotes around everything until I got it right.klownboy wrote:You probably wouldn't believe how many iterations of that run line, and another I used