IE 5: Printing Framesets
04/04/2001One of the problems with Internet Explorer 5 for the Mac is that the Print command only prints the active frame. There is no way to print an entire frameset -- unless you know the hack.
IE 5, like most Mac applications, is only minimally scriptable. But one of the few AppleScript commands it has is PrintBrowserWindow. This command will print the entire browser window contents, including framesets. You invoke it by typing in the Apple Script Editor application:
tell application "Internet Explorer" to PrintBrowserWindow
Now click the Run button, or save it as a compiled script and open it from the Finder. You will have to use the full name of your copy of IE.
As a point of reference ... Internet Explorer support for the Mac is virtually nonexistent on the Microsoft web site. But the best place I have found to get support is the Microsoft Mac IE newsgroup. There is also an unofficial Mac IE FAQ.This hack is compliments of Richard Hough (pronounced "huff," like the pianist), who is a web developer for a Vancouver, Canada, education software company. As part of his job, he has to come up with lots of workarounds for IE on the Macintosh. Richard can be contacted at corvus@mac.com.
|
Also in Mac Hacks: |
Read more Mac Hacks columns.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 4 of 4.
-
IE 5 why not use 3rd party app?
2001-05-21 07:41:37 jackcole [Reply | View]
Seems like a lot of work to get a frameset via Applescript.
Why not use Screencatcher to do the dirty work? Great app use it all the time to capture entire framesets.
-
Printing from JavaScript
2001-04-06 20:56:58 rdomidion [Reply | View]
This doesn't work from JavaScript, only AppleScript and you can't embed AppleScript in a web page. Or can you?
I can't get the JavaScript print to work in IE for Mac, it works in Netscape and IE for Windows. -
Printing from JavaScript
2001-04-09 14:31:49 Derrick Story |
[Reply | View]
This is an AppleScript hack, not one for JavaScript. And to use it, you don't need to embed the AppleScript in the HTML; just have your browser open the page you want to print, then run the AppleScript.






One major problem I'm having, though, is that AppleScript can't wait to execute the next line of code, so IE may still be loading a page, and AppleScript has already moved on. That can cause problems whiel coding...oh well.