Previous pageNext pageTable of Contents Home page


Corel script is a BASIC-based programming language with an extendible command set for application-specific tasks. This language uses an OLE Automation technology to link to other applications and control their execution. You can create a drawing in CorelDRAW via Corel script or convert a number of pictures with Corel PHOTO-PAINT. The variety of tasks that can be performed with Corel script is really limitless. They could range from the simplest macro-commands to automate your frequent operations (e.g. to move all objects by the distance of their widths) to very complex procedures that even server applications (CorelDRAW, Corel PHOTO-PAINT, etc.) cannot do by themselves.

In order to imagine the kind of work that can be performed with scripts refer to Oberon Script Gallery 2 page to review some useful scripts for CorelDRAW 7/8 as well as other CorelDRAW and Corel PHOTO-PAINT scripts.

CorelSCRIPT is a program included in the CorelDRAW suite. It is the program that is used to create your own scripts and to execute them. To load it (true for version 8) go to Start menu | Programs | CorelDRAW 8 | Productivity Tools | Corel SCRIPT Editor. Make sure you have installed CorelSCRIPT Editor during CorelDRAW setup. Its checkbox is located under Productivity Tools node in the Setup.

There are many applications that already support OLE Automation features. CorelSCRIPT can run with any of them not with just CorelDRAW.

Creating scripts

To create your script you should use CorelSCRIPT Editor. After the editor is started just type in the script code in a new window.

The other way of easy script creation is recording it with the Script and Preset Manager in CorelDRAW or Corel PHOTO-PAINT. When recording your actions the Script and Preset Manager automatically generates the script source code. This feature is not available in CorelDRAW 6.

Running a script

To run the script just press the Run button on the CorelSCRIPT toolbar or go to Tools|Scripts|Run script... menu in CorelDRAW or PHOTO-PAINT. You can also run a script in the Script and Preset Manager. Just double-click the script's icon or select it and press button.

Script and Preset Manager act much like Windows Explorer. You can see script icons and folders. But note that it can access only scripts folder in the folder of application you are using the Manager in. If you open Script and Preset Manager from within CorelDRAW, it can have access only to the draw\scripts folder and all subfolders in this folder. If from Corel PHOTO-PAINT, Scripts and Preset Manager can run scripts in the photopnt\scripts folder and below.

What next?

Now that you know what the scripts are and how to create them, you will learn the basic concepts of Corel script language.

Previous pageNext pageTable of Contents Home page