222
Chapter 14 Scripting the Visual Tools Object Model
ShellToAppAndWait
Syntax
ShellToAppAndWait(const wsAppFileName: WideString);
Description
Boolean. Same as
ShellToApp
but waits for the external program to close before
returning. The application is locked until
ShellToAppAndWait
returns, so use this
method with caution.
Example
function Main(){
with (Application){
// Edit current document in notepad and then reload it
ShellToAppAndWait(’notepad.exe ’ + ActiveDocument.Filename);
ActiveDocument.Reload(false);
}
}
ShowProgress
Syntax
ShowProgress();
Description
Shows the progress bar.
Example
function Main() {
with (Application) {
ShowProgress();
}
}
ShowThumbnails
Syntax
ShowThumbnails(sFolder: OleString);
Description
Shows thumbnails for all images in the passed folder.
Example
function Main(){
with (Application){
ShowThumbnails(CurrentFolder);
}
}
StatusError
Syntax
StatusError(const wsMsg: WideString);
Description
Displays an error message in the status bar. Message appears on a red background
and displays for at least 5 seconds.
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...