Re: OS 9 machine info query
Re: OS 9 machine info query
- Subject: Re: OS 9 machine info query
- From: Hylton Boothroyd <email@hidden>
- Date: Fri, 20 Jan 2006 02:11:30 +0000
On Thu, 19 Jan 2006 11:22:20 +0000 Ross Pointon <email@hidden>
wrote:
> I've made a program for collecting machine information for
> insurance purposes that I can email out to my users and get them to run
> themselves. The problem is, it only works in OS X, not OS 9 which a lot
> of them are still using.
You are relying heavily on unix-like system calls that simply aren't there
to respond in OS 9. Which means that whatever you were trying to do in OS 9
you would need to rethink most lines and would need to say goodbye to
'awk' and 'grep' and all the other commonplace unix tools.
> Does anyone know how to get the information for an OS 9 machine?
It's just possible someone will be along with just the details you need. In
the meantime here are some pointers.
The advice to look first at System Profiler is sound. A simple way to get at
its AppleScript dictionary is to drag-and-drop its icon onto the Script
Editor icon. There are long lists of info under "application" and "report".
But the precise script syntax might depend on the version of OS 9.*.* in
use, and also on the version of AppleScript. When OS 9 was current, quite a
bit of the content of this list dealt with what broke/changed as the two of
them changed, and with how to try to ensure that scripts wouldn't break.
Somewhat tantalisingly, there was a well-developed world of third-party
scripting additions which facilitated scripting for individual users. But
there again these also had to be changed with changing AS and OS9.
I use late versions: AppleScript 1.8.3 and OS 9.2.2.
> I've included the code I've been using below:
For me, only two lines of your code would compile as stand-alone scripts
(and even they may have depended on one or more of the extra 43 non-standard
scripting additions on my iBook)
> set MacOS_version to (my gestalt_version_info("sysv", 4))
> set starup_disk_name to (text 1 thru -2 of (path to startup disk as string))
Only the second line ran to completion (and additionally gave the correct
answer).
So you will need to spend some time on machines with OS9.
--
Hylton
_______________________________________________
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