> Does this command line version of System Profiler exist in all versions
> of the Mac OS?
> Specifically, System 8.1 and forward?
I really don't know the formal answer to your question. However, since
there really was no such thing as a 'command line' on Mac OS prior to
Mac OS X it is safe to assume that you are out of luck on Classic.
Sorry.
I'm not even sure when the (original) gui version of system profiler was
introduced. That may have been with 8.1, or 8.5. If you'd wan't to
interface with those versions of the program, maybe you could use
AppleScript, but I know next to nothing about AS...
> Its man page doesn't specify which versions it exists on and whether
> the XML format, the SPX file, is identifical in different versions of
> the OS.
I _believe_ the xml export was added in OS 10.2 or 10.3. I'm really not
sure, but System Profiler is under (somewhat) active development, so
things do change.
patrick
brooks.todd@gmail.com - 31 Jan 2005 22:33 GMT
I didn't realize the command prompt was something new to Mac OS, though
it makes sense.
I hadn't looked into Applescript as I was planning on doing development
via gcc or possibly even REALbasic since it can make standalone
executables for 8.1 and later. I guess I'll investigate Applescript.
Not coming from the Mac world, I assumed (probably incorrectly) that
Applescript was analogous to VBScript on Win32 and thus wouldn't be
able to produce executables.
Thank you very much for your time and information!
Regards,
todd