On 3/7/05 5:40 AM, Felix Schwarz didst favor us with:
> Hi,
>
> just wanted to say that with little extra code, I was now able to solve
> the problem. The SetCustomIcon sample code was certainly helpful :)
Yes, sample code is like that. ;-)
>> File/fork: I used that, because the alias data is located in a fork
>> other than the data fork. :)
I remember a time when Mac programmers knew that was called the resource
fork.
>> I really would like to go the AppleEvent route, but it simply doesn't
>> work. I tried this newer code
>>
>> http://lists.apple.com/archives/carbon-development/2003/Aug/
>> msg00932.html
I don't use this code, but using AppleEvents to get the Finder to make
aliases works just fine for me. If what you really wanted was to have the
Finder create them, why didn't you ask that instead of how to add custom
icons?
>>
>> and while there is never an error returned (I stepped through all
>> functions involved with the debugger), an alias file never gets
>> created for me. I don't know whether this is the latest version of the
>> sample code - it's the latest version I could find in the mailing list
>> archive.
>>
>> The only thing that did work (for the actual alias creation) for me
>> was to use the method described here:
>>
>> http://www.mactech.com/articles/mactech/Vol.09/09.01/Aliases/
This article is what, 14 years old? Well, points for diligence for finding
such an article, but I wrote an alias utility that created aliases before
that article was written and I'd still go the AppleEvent route.
>> Of course I would prefer to have the Finder create the alias, but I
>> don't have enough knowledge on AppleEvents and/or AppleScript to
>> actually find the error in the sample code from the carbon-development
>> mailinglist and I did not find any other code that would do the job
>> :-(
I didn't see any questions from you about how to do this.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden