Resolved Non User Specific Symbolic Link

Discussion in 'Mac Programming' started by rolandoislas, May 14, 2011.

  1. rolandoislas, May 14, 2011
    Last edited: May 14, 2011

    rolandoislas macrumors newbie

    May 14, 2011
    I have been trying to create a non user specific symbolic link that points to ~/Library/Application Support.

    I tried:
    ln -s ~/Library/Application\ Support Drag\ Here\ to\ Install
    This creates the symbolic link that works on my user, but when it is moved to another user it doesn't work. I thought I was creating it wrong, so I created one for the applications folder.
    ln -s /Applications Drag\ Here\ to\ Install
    The symbolic link for the Applications folder works. How can I get the first one to work without being user specific. Is this possible with a symbolic link? If not can somebody tell me of any other way I can achieve this.
  2. Hansr macrumors 6502a

    Apr 1, 2007
    Symbolic links are always hardcoded, ~ will always be translated to /Users/YOU/ when creating them. What are you trying to accomplish precisely?
  3. rolandoislas thread starter macrumors newbie

    May 14, 2011
    I have created a dmg that contains files that must be placed in the users Application Support folder. I would like the symbolic link there so that the user can just drag the folder onto the link instead of going to ~/Library/Application Support.

    I have tried using an installer package to accomplish this , but I cant seem to get it to install the files to "Application Support"
  4. Sydde macrumors 68020


    Aug 17, 2009
    Perhaps you could whip out a quick little app that does the job? Just something that takes dropped files (perhaps verifying that those are the right files) and puts them where you need them?
  5. rolandoislas thread starter macrumors newbie

    May 14, 2011
    I decided to go with the package installer. It doesn't have the convenience of drag and drop like a symbolic link would, but it gets the job done.

Share This Page