Re: Scripting Components Version
Re: Scripting Components Version
- Subject: Re: Scripting Components Version
- From: Ehsan Saffari <email@hidden>
- Date: Mon, 16 Apr 2001 13:44:51 -0600
On 16/04/2001 10:23,"Bourque, Jason" <email@hidden> wrote:
>
Any advise how to check the version of AppleScript installed and versions of
osax?
to get AppleScript Version:
set ASV to version --> 1.3.7
--to get installed OSAXen versions, here's one way:
global mList
to checkAdditionsVersion()
set mList to {}
set thePath to (path to scripting additions as text)
set OSAXen to list folder thePath without invisibles
repeat with aFile in OSAXen
set theFileInfo to info for (thePath & aFile)
if folder of theFileInfo is not true then
tell application "Finder" to set sv to short version of theFileInfo
set end of mList to aFile & " VERSION " & sv
end if
end repeat
end checkAdditionsVersion
my checkAdditionsVersion()
-->{
"AGStart VERSION 1.0",
"Apple Data Detectors Scripting VERSION 1.0.2",
"Desktop Printer Manager VERSION 1.0",
"FileSharing Commands VERSION 8.0",
"Keyboard Addition VERSION 8.1",
"MonitorDepth VERSION 1.0",
"Network Setup Scripting VERSION 1.0.2",
"Remote Access Commands VERSION 3.1.3",
"Standard Additions VERSION 1.3.7",
"URL Access Scripting VERSION 1.0.1",
}