Re: Finder Show Info Comments
Re: Finder Show Info Comments
- Subject: Re: Finder Show Info Comments
- From: Rainer Brockerhoff <email@hidden>
- Date: Thu, 6 Dec 2001 13:20:05 -0200
Date: Thu, 6 Dec 2001 23:26:21 +1030
From: Nathan Day <email@hidden>
You are probable going to have to use Carbon for that, Carbon has four
methods PBDTGetCommentSync, PBDTGetIconAsync, PBDTSetCommentSync and
PBDTAddIconAsync. Good luck, there is a steep learning curve with Carbon
as there is with Cocoa, and it's a real pain having to pick your way
through the mountains of info when you want to do something simple.
Alternatively you might be able to find some command line tool that will
return the comments for you, I briefly looked at GetFileInfo but only
seems to return file type/creator, creation/modification date and some
attribute flags.
On Thursday, December 6, 2001, at 05:23 PM, Ian G. Gillespie wrote:
I am trying to figure out how I can get a string out of the comments
text view in Finder's Show Info Window. I would also like to be able
edit the string and then put it back. Anyone know how I can do this
> preferably using Java?
I may be mistaken here, but the last time I tried handling comments
(for XRay), the PBDT... methods simply returned null information...
and even if they worked, they would return the Mac OS 9 comments. Mac
OS X comments are handled by the Finder (inside the opaque .DSInfo
files) and the only way to get or set them is to ask the Finder to do
it for you.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"Originality is the art of concealing your sources."
http://www.brockerhoff.net/ (updated Dec. 2001)