Ah, yeah, sorry - careless of me.
Short answer : Yes.
Long answer :
function wrapQ pText
return quote & pText & quote
end wrapQ
function shellEscape pText
-- keep this at the end because it messes up Coda colouring
repeat for each char tChar in "\`!$" & quote
replace tChar with "\" & tChar in pText
end repeat
return pText
end shellEscape
Sorry again,
Alex.
On 15/07/2019 01:07, Mark Wieder via use-livecode wrote:
On 7/14/19 3:24 PM, Alex Tweedly via use-livecode wrote:
In case it helps, here's the code I use to send email from my LC
server account. I should know where this came from (and I suspect I
should be able to thank the original author), but that's lost info
right now.
wrapQ()? shellEscape()?
Are these just the way they sound?
wrapQ(x) = quote & x & quote
shellEscape(x) = escape what needs escaping in x
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode