MacNN Forums (
-   macOS (
-   -   convert aliases to symlinks? (

kent m Jun 23, 2011 04:25 PM
convert aliases to symlinks?
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,
CharlesS Jun 23, 2011 08:07 PM
Easy enough to do with Objective-C:

Requires Mac OS X 10.6 or later.
kent m Jun 23, 2011 08:27 PM

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?
CharlesS 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.
kent m 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 Jun 23, 2011 09:53 PM
Also, thanks for the little man page

All times are GMT -4. The time now is 09:38 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

Content Relevant URLs by vBSEO 3.3.2