Re: Creating an alias
Re: Creating an alias
- Subject: Re: Creating an alias
- From: Kris Amico <email@hidden>
- Date: Mon, 03 Mar 2003 19:06:48 -0800
You may use various APIs in CarbonCore from Cocoa to create alias records,
but another way to do it is simply to ask the Finder to do it for you. If
the Customer wants us to put an icon for something on the desktop, we open
an NSTask to /usr/bin/osascript with a script that does it for us as
standard input.
On 3/3/03 4:04 PM, "Ben Mackin" <email@hidden> wrote:
>
I am trying to create an alias of my program to place in the PDF Services
>
folder at runtime of my application. The problem is I don't see how to
>
create an alias using Cocoa. I saw something about creating a symlink, but
>
they break if the application is moved (I guess I could always just create a
>
new symlink at every run of my application, but an alias would be much
>
easier to deal with)
>
>
Or alternatively, is it possible to have the installer create an alias? I
>
tried just including an alias I made, but once it got installed, I just got
>
a 0kb file, not an alias.
>
>
Any pointers would be much appreciated.
>
>
Thanks,
>
Ben
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
Kris Amico <email@hidden>, AIM: Kris Amico
Senior Software Engineer
Macintosh Client Software Development
EarthLink, Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.