Showing multiple files from different locations on the desktop

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

  1. nathanlukewong macrumors newbie

    Joined:
    May 10, 2009
    #1
    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.

    Thanks
     
  2. IHelpId10t5 macrumors 6502

    Joined:
    Nov 28, 2014
    #2
    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

    Joined:
    May 10, 2009
    #3
    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

    Joined:
    Oct 25, 2015
    #4
  5. IHelpId10t5 macrumors 6502

    Joined:
    Nov 28, 2014
    #5
    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
    monitorFolder='/folder/to/monitor'
    for f in $(ls ${monitorFolder}/*pattern*)
    do
    ln -s "${monitorFolder}/${f}" "~/Desktop/${f}"
    done

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

Share This Page