• 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: OS X: determine if Explorer is Classic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X: determine if Explorer is Classic


  • Subject: Re: OS X: determine if Explorer is Classic
  • From: Michael Turner <email@hidden>
  • Date: Fri, 14 Jun 2002 11:47:11 -0400

Is it possible for AS to determine if Internet Explorer is running in
Classic vs OS X natively? What I would like to do is use that
distinction to determine one of 2 html pages to launch.

Detecting OS version isn't the issue, the trouble is that Internet
Explorer could be running in either mode, and I need to provide
instructions that are dependent on which environment the browser is
running in. Any ideas?


If you know it's running (otherwise put in an error trap):

tell application "Finder"
set ieProcess to item 1 of (get every application process whose name is
"Internet Explorer")
set appFile to application file of ieProcess
if name of appFile ends with ".app" then
set classicVersion to false
else
set classicVersion to true
end if
end tell


--
Paul Berkowitz

Paul,

Wow, very useful technique. Thanks!

Is there a related technique to _launch_ (& direct commands to) the classic vs. the OSX version of (for example) ASP?

tell application "Apple System Profiler.app"
is compiled as:
tell application "Apple System Profiler"

/Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: OS X: determine if Explorer is Classic
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: OS X: determine if Explorer is Classic (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: List Question: Can someone explain this to me?
  • Next by Date: Re: can I do this better?
  • Previous by thread: Re: OS X: determine if Explorer is Classic
  • Next by thread: Re: OS X: determine if Explorer is Classic
  • Index(es):
    • Date
    • Thread