Showing multiple files from different locations on the desktop

Discussion in 'macOS' started by nathanlukewong, Jul 23, 2016.

  1. nathanlukewong macrumors newbie

    May 10, 2009
    Hi there

    I was wondering if anyone could please tell me how I can show multiple files from different folders on my desktop.

    Ive tried using -ln s but that only seems to work for a folder, rather than the contents of the folder.

  2. IHelpId10t5 macrumors 6502

    Nov 28, 2014
    You can certainly use a symlink (ln -s) for either files or folders but you can also simply use a Mac "alias" by holding [option]+[command] while dragging the file or folder to the Desktop.
  3. nathanlukewong thread starter macrumors newbie

    May 10, 2009
    Thanks for the reply - although the folder contents will not be dynamic

    How can I have it so that when ever new content is added to a particular folder it is automatically synced to my desktop as well?
  4. JohnDS macrumors 65816

    Oct 25, 2015
  5. IHelpId10t5 macrumors 6502

    Nov 28, 2014
    As JohnDS suggested, maybe automator watch. Or, you could likely write a bash script and schedule it to run every hour using cron. Something like this:

    #!/usr/bin/env bash
    for f in $(ls ${monitorFolder}/*pattern*)
    ln -s "${monitorFolder}/${f}" "~/Desktop/${f}"

    Just threw that together so test the quoting and the subshell "ls" command carefully first but this should be close.

Share This Page