AppleScript: Obter a versão do Mac OS X

Para saber qual versão do Mac OS X o usuário está rodando:

get system version of (system info)
-- retorna "10.5.6"

Por exemplo, se você quer detectar se o usuário está no Leopard, faça:

if system version of (system info) starts with "10.5" then
	display dialog "é Leopard"
end if
This entry was posted in AppleScript and tagged , , , , . Bookmark the permalink.