How to Use the Backslash Character in AppleScript ScriptID: Q115815 The information in this article applies to: - Microsoft FoxPro for Macintosh, version 2.5b, 2.5c
SUMMARYThe backslash (\) character has a special meaning when it is part of a string in an AppleScript script. The backslash is used to indicate the start of an escape sequence. To use a backslash in an AppleScript string, use two backslashes (\\).
MORE INFORMATIONFor example, the following AppleScript script is meant to change the default folder from the main FoxPro folder to the TUTORIAL subfolder.
The \t will be interpreted as a horizontal TAB character that will cause
the command to fail without an error message. To correct this problem, the
syntax of the AppleScript script should be:
Depending on what character follows the backslash, three results could
occur:
REFERENCES"AppleScript Language Reference," Developer Technical Publications, Apple Computer, 1993 Additional reference words: VFoxMac 3.00b FoxMac 2.50 2.50b 2.50c Apple Script back slash KBCategory: kbprg KBSubcategory: |
Last Reviewed: June 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |