spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column48


Using JavaScript in HomeSite 4.0, Part I

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


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

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