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: Michael Slomski <email@hidden>
- Date: Tue, 28 Oct 2003 11:02:05 +0100
Thanks a lot,
Here is my way how I've got it running:
tell application "Finder"
set myVersion to version
set myVersion to (last word of myVersion)
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to "."
set myFirst to text item 1 of myVersion
set mySecond to text item 2 of myVersion
set myFinderVersionNum to (myFirst & "," & mySecond) as number
if myFinderVersionNum < 10 then
set isOS9 to true
else
set isOS9 to false
end if
-- here follows more stuff :-))
end tell
Until now, it is running and working, but I will give Chris' solution also a
try because it seems shorter. And shorter is very times better because most
often you can make less errors :-)
Best regards
Michael Slomski
---
Computerkartographie M. Slomski
Kartographie Systemberatung & Betreuung
f|r Apple Macintosh
Schnorr-von-Carolsfeld-Str. 19
D-81927 M|nchen
Tel.: ++49 +89-929 40 57 oder ++49 +177-44 57 990
Fax.: ++49 +89-939 311 71
Email: email@hidden
_______________________________________________
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.