Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Aug 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scripting IE6 file saves on the client (6.0 /2K SP4)

    I'm uncertain whether this is the appropriate forum. If no, pointers to others would be much appreciated.

    I want to automate saving web pages [as web archive (.mht) and/or html only (.htm)] with logic-driven changes to the file name. The filename changes will incorporate selected text from the page itself.

    I can't find an app that already does this, and the filename handling is idiosyncratic enough that I'll probably have to roll my own.

    I'm in over my head, and would appreciate recommendations as to scripting language, tools, tricks, or support areas.

    Thank you!

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Scripting IE6 file saves on the client (6.0 /2

    Most of the ways that the browser could be internally automated to save a file have been locked down due to various abuses. One of the few remaining ways is to create a "Hypertext Application" (a page with a .HTA file extension) because those bypass most of the security for .HTML pages. In that case, you could use VBScript (might as well, since HTAs only run in IE). VBScript can save the page's source, but I'm not sure whether it can save "archive" files.

    Alternatively, you could try using an external application to automate IE itself. I've automated IE from Word VBA, but I don't recall Save being one of my options.

    (Gee, I'm a big help. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15> )

  3. #3
    New Lounger
    Join Date
    Aug 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scripting IE6 file saves on the client (6.0 /2

    Thanks Jeff, (I think) [img]/forums/images/smilies/wink.gif[/img]

    I didn't know about .HTA's. Searching them yielded some good leads.

    Do you know whether VB script is the only scripting language IE will support? I know ActiveX is supposed to translate lots of scripting languages on Windows, but does it extend into IE?

    The thought of initiating surfing by opening word is kind of amusing. I could live with it, but I'd get killed trying to distribute.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Scripting IE6 file saves on the client (6.0 /2

    IE can natively run either JavaScript ("JScript") or VBScript. I'm not aware of any ActiveX controls that override the browser's security model, letting you script actions that normally are inaccessible. But since it would be a great tool for any virus writer, it wouldn't surprise me if there were one out there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •