image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old May 14th, 2008, 09:12 PM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
Can one create an “Alias” via Terminal?

I needed an alias from a PrefPane in my user area. I figured a symlink would do. So in Terminal I did a ln -s with the proper user directory and all looked good, it appears.

But the system threw an error when I tried to click it. It offered to repair the “alias” or delete it, so I opted to repair it, still didn’t work, errors. I tried twice then threw in the towel, enabled root, logged into the GUI and created an alias the normal way, that’s fine.

I’m still wondering about the command line procedure though. It would be a link from a user area to an area owned by root and I’m guessing that’s the issue.
Reply With Quote
  #2  
Old May 14th, 2008, 09:44 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,462
Thanks: 3
Thanked 10 Times in 9 Posts
Mikuro is on a distinguished road
Why did you need to enable root to create the alias? You should be able to make an alias in the Finder as any account. Does your account not have read access on your /System folder? Edit: I just remembered that the "Make Alias" command is dimmed without write access. In case you don't know, you can make aliases anyway by holding down command and option while dragging a file to another folder you have write access to.

Both aliases and symlinks work just fine for me. I made the alias in the Finder, the symlinks in Terminal like so:
Code:
ln -s /System/Library/PreferencePanes/Appearance.prefPane ~/Desktop
I'm on 10.5.2, for what it's worth.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #3  
Old May 14th, 2008, 10:38 PM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
Quote:
Originally Posted by Mikuro View Post
Why did you need to enable root to create the alias?
Because I was peeved.

Quote:
In case you don’t know, you can make aliases anyway by holding down command and option while dragging a file to another folder you have write access to.
Didn’t know about that one.

Quote:
…the symlinks in Terminal like so:
Code:
ln -s /System/Library/PreferencePanes/Appearance.prefPane ~/Desktop
Yeah, that works and that’s what I was doing, except I was using sudo. I’m not quite sure what I was doing wrong, but I’d been struggling with something else for quite a while and I was in a hurry.

Edit: I got a cuter icon the way I did it, looks just like the icon in the preferences panel. So there

Last edited by simbalala; May 14th, 2008 at 10:45 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:19 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.