?
Solved

How to Detect OS 9 or OS X?

Posted on 2003-03-26
4
Medium Priority
?
310 Views
Last Modified: 2013-11-17
I need to detect whether the operating system on a Mac is OS X or OS 9 when i open a html file on a CD.
0
Comment
Question by:mDheatley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
tomster earned 352 total points
ID: 8210456
One thing that comes to mind: try linking locally to a file on the CD via

/Volumes/<NameOfCD>/Path/To/File/file.html

if the link is not broken you can safely assume that you're on MacOSX

if

/<NameOfCD>/Path/To/File/file.html

works you're probably on MacOS 9

hth,

tom
0
 

Assisted Solution

by:msents
msents earned 348 total points
ID: 8220778
Do a browser check. The current browser versions for OS 9 are probably not going to change, so hard code for the version numbers (i.e. up to MSIE 5.14; Mac_PowerPC for Mac OS 9) but use a range for OS X (cf. MSIE 5.22+ for OS X). You can get the code for a browser check from any number of online sources.  
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question