Re: Finder Show Info Comments
Re: Finder Show Info Comments
- Subject: Re: Finder Show Info Comments
- From: Eric Schlegel <email@hidden>
- Date: Thu, 6 Dec 2001 09:12:01 -0800
On Thursday, December 6, 2001, at 08:18 AM, Alexandre Aybes wrote:
Stupid question: where do we find those Apple Events? :)
FinderRegistry.h has all the relevant constants. Also, this script in
AppleScript will get the comment of a file:
tell application "Finder"
get comment of file "Foo:bar"
end tell
The Finder event suite, from what I know, is a fairly standard
AppleEvent Object Model-based suite. You might take a look at "Creating
Object Specifier Records" on pg. 6-55 of Inside Mac: Interapplication
Communications for some information about creating object specifiers.
You'll need to create an object specifier for the file that you want the
comments of.
-eric