Results 1 to 4 of 4

Thread: symlink/alias to Documents folder

  1. #1

    Default symlink/alias to Documents folder

    Hi, I am trying to create a DMG installer that, in addition to the standard "drag .app to Applications" pair of icons, also has a second "drag sample files directory to Documents" set of icons.

    My problem is that I cannot figure out how to create the link/alias to ~/Documents. Everything I have tried results in a hardcoded path in the DMG, so that when I open it on another account/machine the path is /Users/user_who_created_dmg/Documents, instead of ~/Documents

    Is there a way to do this in the layout-creator UI?

  2. #2

    Default

    Quote Originally Posted by meshmixer View Post
    Hi, I am trying to create a DMG installer that, in addition to the standard "drag .app to Applications" pair of icons, also has a second "drag sample files directory to Documents" set of icons.
    If you can create the proper symlink, you can put it in your source folder and DropDMG will position it correctly in the layout. However, I’m not aware of any way to create a username agnostic symlink. Unix will expand the “~” before creating the filesystem entry.

  3. #3

    Default

    what about an alias? I have a dmg-creation script (a "poor-man's" DropDMG) that will properly create a DMG from a folder containing an alias to a ~/relative path. I tried this with DropDMG and it did not work, though. Is that unsupported, or was I doing it wrong? (I created a folder called 'Documents' in the DropDMG layout editor and then created an alias with the same name in the folder I passed to DropDMG).

  4. #4

    Default

    Quote Originally Posted by meshmixer View Post
    what about an alias?
    I don’t think is’s possible to make an alias to ~/Documents. How did you do that?

    Quote Originally Posted by meshmixer View Post
    (I created a folder called 'Documents' in the DropDMG layout editor and then created an alias with the same name in the folder I passed to DropDMG).
    If the alias works, that should work. DropDMG doesn’t modify the files in the source folder; it will just copy the alias as-is.

Similar Threads

  1. Files folder alias query
    By admin in forum EagleFiler
    Replies: 1
    Last Post: 08-05-2011, 11:26 AM
  2. Importing entire Mac Documents folder
    By selrak in forum EagleFiler
    Replies: 1
    Last Post: 02-28-2010, 05:23 PM
  3. New documents – approaches
    By greiggy in forum EagleFiler
    Replies: 1
    Last Post: 12-28-2009, 12:47 PM
  4. Scrolling pdf documents
    By bleitreu in forum EagleFiler
    Replies: 2
    Last Post: 10-02-2009, 05:10 AM
  5. Alias problem ...
    By Mic in forum SpamSieve
    Replies: 1
    Last Post: 12-30-2006, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •