Le 23 mars 07 à 13:58:40, Ted Fitzpatrick a écrit :
Your first question:
tell application "Finder"
version
end tell
This will return the Finder's version num which doesn't match the OS
one.
With MacOS 10.4.9, it returns 10.4.7 which is not the wanted value.
You may use:
--[SCRIPT]
set OS to my NumToHex((system attribute "sysv"), 4)
tell application "Finder"
display dialog "The current OS version is : " & OS
end tell
on NumToHex(theNumber, stringLength)
set hexString to {}
repeat with i from stringLength to 1 by -1
set hexString to ((theNumber mod 16) as string) & hexString
set theNumber to theNumber div 16
end repeat
return (hexString as string)
end NumToHex
--[/SCRIPT]