Using JavaScript in HomeSite 4.0, Part I: The Application Object's Methods, Part VIII | WebReference

Using JavaScript in HomeSite 4.0, Part I: The Application Object's Methods, Part VIII


Using JavaScript in HomeSite 4.0, Part I

The Application Object's Methods, Part VIII

ShellToApp(fullPath) Boolean

Invokes an external application specified by the given parameter (fullPath). The parameter may include a complete command line with arguments. Returns -1 (a true value) if application launched successfully, and 0 otherwise. For example, the following line launches the Wordpad application and loads the "index.html," a text (HTML) file:


app.ShellToApp("C:\\Program Files\\Accessories\\Wordpad.exe
 E:\\Tomer\\column48\\index.html");
  // (The above two lines should be joined as one line.
  // They have been split for formatting purposes.)
ShellToAppAndWait(fullPath) None

Same as ShellToApp() but waits for the external program to be closed before returning. Note that the application will be locked until ShellToAppAndWait() returns, so use with caution.

ShowProgress() None

Shows the Progress bar. Here is how the status area looks like when we set ShowProgress():

The Status Bar
ShowThumbnails(fullPath) None

Shows thumbnails for all images in the given folder (fullPath). The following image show how the statement ShowThumbnails("U:\\Tomer\\column48\\") affects HomeSite's Results area:

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: September 13, 1999
Revised: September 13, 1999

URL: http://www.webreference.com/js/column48/appmet8.html