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: File kind from "info for"




On Jul 26, 2005, at 3:13 AM, George Bray wrote:



I'm trying to extract finder information for files on disk using info for

    set fileInfo to info for (theFolder & theFile) as alias

I can use all the items in the returned record, EXCEPT kind
...
I get an error when referring to kind like this:

    set myvar to kind of fileInfo

"Can't get kind of ...."

I'm presuming AS is getting confused, seeing it as an internal property rather than letting me refer to the record item. Can I express it differently to extract this nugget?

Are you executing this in the context of a tell block to an application that might have its own interpretation of the "kind" property? I just ran this as a standalone script:


set fileinfo to info for file "Futura:Users:neil:Desktop:BMSINAME.TXT"
kind of fileinfo


And it worked fine here.

Regards,

    Neil Faiman

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to email@hidden

References: 
 >File kind from "info for" (From: George Bray <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.