Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > convert aliases to symlinks?

convert aliases to symlinks?
Thread Tools
Mac Enthusiast
Join Date: Apr 2001
Location: ~
Status: Offline
Reply With Quote
Jun 23, 2011, 04:25 PM
 
Hello,
Is there a script available to convert aliases to symlinks?

I've created a bunch of aliases in the Finder and have now discovered that I can't navigate them in the terminal, so I need symlinks. However, its a prohibitive effort to generate a symlink for each of the aliases. So I want something that, preferably, I can either drag a alias file onto - an Applescript droplet - or a bit of code I can run in the terminal that will - at best step through each alias in a dir automatically - or I run on each alias by adding an input text.

Any help greatly appreciated!

I've found this, and have created a .chs file in the bin dir, but it doesn't seem to run - errors out. Is there a better way to do this, or is there a fix to the code I can make to have it run?

A script to convert aliases to symlinks - Mac OS X Hints

Thanks very much,
Kent

kent m is not a member of any public groups
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jun 23, 2011, 08:07 PM
 
Easy enough to do with Objective-C:

http://www.charlessoft.com/alias_converter.zip

Requires Mac OS X 10.6 or later.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
kent m  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: ~
Status: Offline
Reply With Quote
Jun 23, 2011, 08:27 PM
 
Thanks!

But what a drag, I'm 10.5.8.

I'd update but this is a work computer... can this be modified to work in 10.5.8?

kent m is not a member of any public groups
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Jun 23, 2011, 09:29 PM
 
Argh... you could have mentioned that before.

Okay, I rewrote it. Download it again and give it a try. Keep in mind that I'm not running 10.5.8, haven't tested it on 10.5.8, and since Xcode 4 doesn't have the 10.5 SDK anymore (grumble, grumble), it's hard to tell whether this will actually work or not on 10.5.8. Run at your own risk; I am not responsible if it explodes your computer, gives your dog cancer, yadda yadda yadda.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
kent m  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: ~
Status: Offline
Reply With Quote
Jun 23, 2011, 09:47 PM
 
I apologize, I should have mentioned it. I actually didn't even think about it - I'm setting up on a new job and just absentmindedly assumed that the machine was 10.6 without looking.

The new file: It works! No cancer so far.

VERY generous, thanks.

I love your sig file, by the way!

kent m is not a member of any public groups
     
kent m  (op)
Mac Enthusiast
Join Date: Apr 2001
Location: ~
Status: Offline
Reply With Quote
Jun 23, 2011, 09:53 PM
 
Also, thanks for the little man page

:-)

kent m is not a member of any public groups
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 06:36 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2