Re: OS X: determine if Explorer is Classic
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.