• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: application version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: application version


  • Subject: Re: application version
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 07 Oct 2003 08:56:38 -0700

On 10/7/03 4:33 AM, "John Cochrane" <email@hidden> wrote:

> In OS 9 I used to find the version of a particular application by
>
> set appVersion to (version of file appFile)
>
> however this does not work for me under OS X.
> I tried
>
> set appVersion to version of (info for file appFile)
>
> but info for does not have a version number.
> I would be grateful if anyone could help.

But 'info for' does have both 'short version' and 'long version'. 'short
version ' (a string in OS X) is usually what you want. Is that not good
enough?

Otherwise, if an application is scriptable and has its own 'version'
property you can 'tell' the app to get its version. In the old days
'version' was a special 'version' class that had quotes and _looked_ like a
string, but wasn't. That's sometimes still true, especially for apps that
started out as Classic apps. You have to coerce these to string first to
start comparing them. Other apps now will have string or Unicode text for
version. But

short version of (info for alias appPath)

will be what you're looking for. You can get the application file of a
running process in System Events or the Finder.


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >application version (From: John Cochrane <email@hidden>)

  • Prev by Date: Re: "mount disk" and ftp problem
  • Next by Date: Re: application version
  • Previous by thread: application version
  • Next by thread: Re: application version
  • Index(es):
    • Date
    • Thread