Re: OS 9 or Classic, that's the question :-)
Re: OS 9 or Classic, that's the question :-)
- Subject: Re: OS 9 or Classic, that's the question :-)
- From: kai <email@hidden>
- Date: Wed, 29 Oct 2003 20:01:08 +0000
on Wed, 29 Oct 2003 03:05:34 -0800, Walter Ian Kaye wrote:
>
OK, I just thought up a new method:
>
>
tell app "Finder" to set OS9 to (application file id "MACS" as alias as
string) does not end with ":"
>
>
Howzzat? :-D
I'm not sure the 'as alias' is needed, boo - but I still can't seem to get
the above to work in OS 9.1 or 9.2.1. There's even a problem here with a
simpler form:
tell application "Finder" to get application file id "MACS"
--> Finder got an error: Can't get application file id "MACS".
==========================================================
on Wed, 29 Oct 2003 10:35:51 +0100, Michael Slomski wrote:
>
> tell app "Finder" to set OS9 to (get version)'s word - 1's item 2 is "."
>
>
Interesting, with OS X 10.3 it will return false.
Correct, Michael. (OS9 is not OS X.)
>
I will check it later, what it will return with OS 9 (no classic)
It should return true (as it does here).
However, in spite of my code-shortening example, I personally favour the
Finder/[computer/system attribute]/"sysv" approach for this type of
situation - as suggested by Richard Morton and Nigel Garvey.
==========================================================
on Wed, 29 Oct 2003 14:47:53 +0000, Nigel Garvey wrote:
>
Perhaps a more accurate name for 'isOS9' would be 'isNotOS10'. :-)
Good point, Nigel. :-)
---
kai
_______________________________________________
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.