Re: Version information for file...
Re: Version information for file...
- Subject: Re: Version information for file...
- From: Emmanuel <email@hidden>
- Date: Sun, 5 Oct 2003 00:25:06 +0200
At 12:24 AM -0600 04/10/03, David Crowe wrote:
>
I'm trying to get the version number of a file ... the Finder
>
dictionary claims this is possible, but when I run this script:
>
>
tell application "Finder"
>
set FileInfo to {name, file type, creator type, version,
>
product version} of file
>
"Tinantia:System:Library:ScriptingAdditions:StandardAdditions.osax"
>
end tell
>
FileInfo
>
>
I get the following output:
>
{"StandardAdditions.osax", missing value, missing value, "", ""}
>
>
What am I doing wrong (if anything)? Note that these files do have a
>
version number when "Get Info" is used (although I'm not sure which
>
of these two versions it is).
Same here (10.2.6). It must be a bug on the side of the osax, because the Satimage osax returns:
"Satimage 2.5.6 by Satimage
Copyright 2003 Satimage-software
www.satimage-software.com"
with "version" (and nothing with "product version"). I wonder what that is for a bug.
I suppose you've got to parse the version.plist yourself.
Emmanuel
_______________________________________________
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.