Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the version of a product



Yes it was... Figured out that version instead of product version worked...
Wonder why the second one is there... May be a left over from OS 9 days ?


On 2/28/05 2:00 PM, "Jake Pietrykowski" <email@hidden> wrote:

>> On 2/28/05 11:29 AM, "Adam Wuellner" wrote:
> 
>>>  On Mon, 28 Feb 2005 11:34:37 -0500, francois.houle
>>>  <email@hidden> wrote:
>>> Hi all,
>> 
>> Hello,
>> 
>>> I saw in the Finder's AS dictionary that you can check for the version of a
>>> product... I just can't figure out how to ge tit to work.
>>> The line of the dictionary is:
>>> product version  Unicode text  [r/o]  -- the version of the product (visible
>>> at the top of the ³Get Info² window)
>>> And its located under Class File : A File
>> 
>> tell application "Finder"
>> set theFile to file (choose file)
>> get theFile's product version
>> end tell
>> 
>> NB: I have not seen a file for which that property's value is other than "".
> 
> Try this...
> 
> --code
> 
> tell application "Finder"
>  set theFile to file (choose file)
>  get version of theFile
> end tell
> 
> --/code
> 
> Perhaps this is what you desire?
> 
> Regards,
> Jake
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/applescript-users/francois.houle%40mcgi
> ll.ca
> 
> This email sent to email@hidden

-- 
François Houle
Customer Support ( IT Help Desk)
IST Customer Services (ICS)
McGill University
514-398-4400 ext 04528
email@hidden
-----------------------------------------------------------------
For IT support, contact email@hidden
514-398-3398

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Getting the version of a product (From: Jake Pietrykowski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.