Using EscapeString in AppleScript

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Dec 8 19:57:58 CST 2003


on 12/8/03 7:20 PM, Trevor DeVore at lists at mangomultimedia.com wrote:

> Hi,
> 
> I was wondering if anyone could provide an example of the correct
> syntax for using EscapeString in AppleScript.  I am fairly
> inexperienced with AppleScript and have tried a couple different ways
> of writing it but ScriptEditor keeps saying it isn't recognized.  I
> didn't see any examples of its use in the docs or in the archives.

Hi Trevor,

In VAPP dictionary said

EscapeString: Escape given string.
    EscapeString  international text  -- srting to be escaped.
        [ForRegEx  boolean]  -- TRUE if string must be escaped for RegEx
search.
    Result:   international text


So you should call it as

    set s to ³some str¹ing²

    tell application Valentina
           set es to EscapeString s

    end tell


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list