Specifications
end tell
Referring to third-party application
If the name of the target application is constant, and if it does not matter that the target
application gets referenced (or sometimes even launched) when the script is first executed, the
script can use the regular compile-time mechanism:
tell application "QuarkXPress"
…
end tell
Otherwise the script must use the following run-time mechanism:
if … then
set quarkName to "QuarkXPress"
else
set quarkName to "QuarkXPress Passport"
end if
using terms from application "QuarkXPress"
tell application quarkName
…
end tell
end using terms from
In the "using terms from application" statement, specify the application name that is currently
installed in the script writer's system. For the above example, "QuarkXPress" application should
be installed, not "QuarkXPress Passport". If the script writer has "QuarkXPress Passport" installed,
write "using terms from application "QuarkXPress Passport"". Afterwards the script may be
executed with "QuarkXPress" as well as with "QuarkXPress Passport".
VBScript
VBScript scripting in Switch is intended primarily for communicating with other applications or
with operating systems services from within Switch. A script object representing the Switch
application provides access to key variables and functions, including the metadata context of
the job being processed. VBScript is available on Microsoft Windows only. Refer to the Scripting
overview on page 130 for more background information.
Note:
Switch does not support the JScript language (a scripting language also available on Microsoft
Windows).
141
Enfocus Switch 10