Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IS there any way to add an alias to the user Documents folder inside a DMG

It is easy enough to add an alias to the Applications folder inside a DMG as it is at /Applications on every Mac. But is it possible to add an alias to a user's Documents folder, where the Documents folder has a different path for each user? I tried adding an alias to ~/Documents, but it became an alias to /Users/andyb/Documents, which obviously won't work on anyone else's machine.

like image 475
Andy Brice Avatar asked Aug 05 '09 14:08

Andy Brice


1 Answers

You cannot use a symbolic link to the users Documents directory since you don't know the path. The '~' as an abbreviation to the home directory cannot be used in a symbolic link because there's no shell that would resolve it.

Alias Files can only be created by the Finder (there's no API for that in Mac OS X), so if an Alias File from the Finder is not working, then there's no way.

I'm afraid, the answer is no.

like image 131
Nikolai Ruhe Avatar answered Nov 07 '22 02:11

Nikolai Ruhe