• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Internet Explorer 5.0's preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Internet Explorer 5.0's preferences


  • Subject: Re: Scripting Internet Explorer 5.0's preferences
  • From: Andy Wylie <email@hidden>
  • Date: Sun, 26 Aug 2001 21:50:45 +1200

on 26/8/01 6:07 PM, Christian Boyce at email@hidden wrote:

> I would like to be able to toggle "Enable scripting" (from the Web
> Content section of Explorer 5.0's preferences) via AppleScript. The
> dictionary doesn't say anything about setting (or getting) preferences.
> If you know how to do this please let me know.
>
I use Akua's interface suite in a script run from CMScript, I've hacked IE's
keystrokes but this should give you the idea...
-----------
on open (theSelection)

try
tell application "Internet Explorer" to Activate
set x to (pointer location of (input state))--get cursor position
input state {keys down:";", transient keys:"C"}--open prefs window
input state {pointer location:{191, 131}}--select 'web content'
input state {button down:false}
input state {pointer location:{317, 355}}--check 'enable scripting'
input state {button down:false}
input state {pointer location:{610, 424}}--OK
input state {button down:false}
input state {pointer location:{x}}--put cursor back
input state {keys down:"]", transient keys:"C"}--show favorites bar
input state {keys down:"r", transient keys:"C"}--reload page
on error m number n
end try
end open

_____________________________ Andy


References: 
 >Scripting Internet Explorer 5.0's preferences (From: Christian Boyce <email@hidden>)

  • Prev by Date: greater than AND less than
  • Next by Date: Re: greater than AND less than
  • Previous by thread: Scripting Internet Explorer 5.0's preferences
  • Next by thread: Re: Scripting Internet Explorer 5.0's preferences
  • Index(es):
    • Date
    • Thread