Re: Creating alias programatically
Re: Creating alias programatically
- Subject: Re: Creating alias programatically
- From: chaitanya pandit <email@hidden>
- Date: Wed, 24 Sep 2008 03:40:34 +0530
On 24-Sep-08, at 3:32 AM, Nick Zitzmann wrote:
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote:
It created an executable file with name foobar alias on desktop but
when i try to open it it says
"chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/
foobar\ alias ; exit;
-bash: /Users/chaitanya/Desktop/foobar alias: cannot execute binary
file
logout
[Process completed]"
Any idea what i'm doing wrong?
You're using an alias file; that's what you're doing wrong. As I
said, only Carbon and certain AppKit classes resolve aliases. BASH
doesn't use Carbon or AppKit; it uses lower level stuff that doesn't
resolve aliases. You'll have to use links (hard or symbolic) instead.
Oh i see! I think using symbolic link would be a better approach,
Thank you Nick and Ken for your help.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden