You can also use the MBS plugin

folderitem.kindMBS

If you need a 5.5.5 version of any of the charles declares though, ask me. I've re written quite a few of them to work in 5.5.5, most requiring support classes though like the Core Foundation classes in this instance.

- Tom

On 30/12/2006, at 5:36 AM, Charles Yeomans wrote:


On Dec 29, 2006, at 1:01 PM, David Lloyd wrote:


Hi,

Can anybody suggest a way of getting the 'Kind' of folder item (i.e. the 'kind' as displayed in the Finder Get Info window).

I know I could do so via an imported AppleScript or using KindMBS, but I'm hoping to avoid using these for now.

Would a declare or AppleEvent do?


There is code in my declares book <http://www.declareSub.com/> to retrieve the kind string for an item. It's in the Launch Services chapter. The code can be revised in light of additions to REALbasic, but it should work as is.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to