Quote:
I found the problem! F**g quotes were missing
|
No idea if relevant or of use but maybe see here for when Path contains a double quote (I have seen this ghastly practice in real paths/filenames):-
https://forum.doom9.org/showthread.p...75#post1871275
Is an avisynth solution but easily converted.
Quote:
Originally Posted by StainlessS
Small script function to enclose a string in double quotes (if you dont know what you might want it for, then you probably dont need it).
If the string itself contains double quotes then encapsulates in set of tripple double quotes, otherwise a single pair of double quotes.
EnQuot() for RT_Stats, EnQuot2() for avs v2.60 only (req FillStr v2,.60)
Code:
BlankClip(Width=320,height=64,color=-$FF000000)
S=""""We "have' a' " QU"ote or ' two"""
#S=""
Function EnQuot(string S) { Q=RT_StrPad("", S.RT_FindStr(Chr(34))==0 ? 1 : 3 ,Chr(34)) Return Q+S+Q } # Req RT_Stats v1.43+
Function EnQuot2(string S) { Q=FillStr(S.FindStr(Chr(34))==0 ? 1 : 3 ,Chr(34)) Return Q+S+Q } # Requires Avs v2.60 for FillStr
S=S.Enquot # RT
#S=S.Enquot2 # Avs v2.6
Subtitle(S)
Result without EnQuot.
Result with EnQuot.
|