How To Do It In Script
Up Get Branch UI Tickler Scripting Draw Export

This is a collection of how-to-do-it-in-script examples. They're not fancy applications - just workman code that do utility jobs that might be required in any script. 

  • Like anyone trying to use Corel Script to automate DRAW or PhotoPaint we've had to devise workarounds for limitations and other problems in the automation scheme. Sometimes a User is asked a question (by DRAW) with a window even though the script is actually running DRAW. Hardly seems automated if the user has to answer a question for every file in a batch ... we show you how to get around that.
  • At other times we have to do mundane tasks like drilling down in the hard drive for files. It's a common function in batch processing but Script doesn't give you this ability in a function - you have to code it. 

If you don't know what to do,  are curious about how another solution differs from yours or just want to learn something - these are for you. 

If you're doing batch file processing you probably need to know the directory structure of a  branch on the disk drive.

It's easy to rely on the user to launch DRAW before they run your script but things could go wrong so you might need to know if Draw is running before your script tries to use it.
Do you want to get around those pesky User dialogs that sometimes pop up when your script can't do anything about it? Look at this.

Have you tried to script Exports in DRAW only to have to rely on the last user's manual export settings? Here's how to set export settings behind DRAW's back so your script doesn't have to.


Copyright © 2002 Misty Creek Productions Inc. All rights reserved.
Revised: July 25, 2002