Launching And Quitting From Visual Basic; Some Objects That Cannot Be Created By A Script; User Interaction Levels - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

59
show a dialog asking if the data on the clipboard should be saved for other applications. You
can avoid this dialog by clearing the clipboard with the statement:
set the clipboard to {}

Launching and quitting from Visual Basic

In Visual Basic, the Activate method will bring the Illustrator application to the front if it is
not already frontmost.
Note that if the clipboard contains data at the time of quitting, Illustrator may show a dialog
prompting the user to save the data on the clipboard for other applications. You can avoid this
dialog by clearing the clipboard with the command:
Clipboard.Clear

Some objects that cannot be created by a script

Following are some objects that cannot be created from a script:
• Graphic styles
• Brushes
• Graphs
• Mesh art
• Plugin art
• Spirals

User Interaction Levels

An application will usually present a dialog when it needs to provide feedback or request
information. This is called user interaction, and is useful and expected when you are directly
interacting with the application. On the other hand, when a script is interacting with an
application, an unexpected dialog will bring the execution of the script to a halt until the dialog
is dismissed. This can be a serious problem in an automation environment where there is
typically no one present to deal with dialogs.
The Illustrator CS application class contains a user interaction level property. By setting this
property a script can control the level of interaction allowed during script execution. All
12 Aug 03
Scripting Illustrator

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents