WebKit Viewer Applet

The WebKit Viewer Applet is an AppleScript applet, designed to display the HTML content contained within its bundle. The stored HTML content is automatically displayed in a browser window, centered on your screen, whenever the applet is launched.

The current HTML content can be replaced with user-provided content that meets the following requirements:

  1. The replacement HTML content must be placed into a single folder, which may contain sub-folders of related content, such as an images folder.
  2. The main HTML page of the replacement content must be a file named: “index.html” (without quotes)

To replace the current HTML content in the bundle, simply drag the single folder of replacement content onto the applet. The following confirmation dialog will appear:

confirmation dialog

Press the “Replace” button and an authentication dialog requiring an administrator user name and password will appear:

authentication-dialog

Enter an administrator user name and password, and press the “OK” button. The current HTML content of the applet will be replaced with the dragged-on content, and the new content displayed in an HTML content-view window.

Viewing Content

By default, the viewer window displayed by this applet has no visible navigation controls. However, you can use the following standard keyboard commands to navigate multiple page content:

NOTE: although links to network or internet sites work within the viewer window, download links do not function.

AppleScript Libraries

The WebKit Viewer Applet is an AppleScript-Cocoa applet that uses an internal AppleScript library to access the WebKit frameworks of OS X in order to display a window containing its stored HTML content. This AppleScript library, available for free download, is written using AppleScript/Objective-C, and can be called from scripts you write yourself.

Visit the following links to learn more about AppleScript, AppleScript libraries, and AppleScript/Objective-C: (select and right-click the URLs to open them with Safari)