• 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
Test to see if web browser can run java script...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test to see if web browser can run java script...


  • Subject: Test to see if web browser can run java script...
  • From: David Siberry <email@hidden>
  • Date: Thu, 30 Jun 2005 11:23:34 +0100

Hi,

I have written a script to test to see if a web browser can run java
script my calling the "do script" or "do JavaScript" methods contained
within a browsers dictionary.

I have managed to write a script that works for Safari and Internet
Explorer, but I cant figure out how to write a script for OmniWeb v5.1

I will use the Internet Explorer script as an example because both
OmniWeb and Internet Explorer use the "do script" command where as
Safari uses the "do AppleScript" command.
I would like to port the script below so it will work with OmniWeb v5.1.

Here is the script for Internet Explorer:

try
	run script "tell application \"Internet Explorer\"
CloseAllWindows
 do script  \"window.name\" window -1
 end tell"

	return true

on error
	return false

end try


try
	run script "tell application \"Internet Explorer\"
quit application
end tell"
end try

Cheers for help,

Thank you kindly,

David Siberry
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Test to see if web browser can run java script...
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: Get text between two substrings
  • Next by Date: Re: Test to see if web browser can run java script...
  • Previous by thread: How to script changing all pdf links from "open in existing window" to "open in new window" throughout a pdf
  • Next by thread: Re: Test to see if web browser can run java script...
  • Index(es):
    • Date
    • Thread