Is there a way to pin certain folders/files to the top on the desktop?

Discussion in 'macOS' started by HXGuy, Feb 11, 2011.

  1. HXGuy macrumors 68000

    Joined:
    Mar 25, 2010
    #1
    You know how the HD and any drives/memory cards appear first on the desktop and always stay there?

    Is there a way to assign this function to certain folders/files?

    I currently have it set to arrange by date modified, so the newest modified folder/file is first on the list...which I like...but there are some folders/files that I use very regularly that I would like to stay at the top all the time.

    Any way to do that?
     
  2. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #2
    Unless you've set the Desktop items to keep arranged by type/kind etc, you can just arrange them manually and the Finder won't move them again.
     
  3. HXGuy thread starter macrumors 68000

    Joined:
    Mar 25, 2010
    #3
    I like to have them arranged by "Date Modified" but wanted to know if there is any way to exclude certain folder/files from being arranged with the rest, so they always stay at the top.
     
  4. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #4
    There's no easy way that I'm aware of. If you didn't mind an ugly hack, you could use the Terminal to set the modified date of those folders to be some date in the distant future, such that they'll always be arranged at the top if arranged by Date Modified.

    I'm not sure if the Finder would auto-correct the dates at some point.
     
  5. HXGuy thread starter macrumors 68000

    Joined:
    Mar 25, 2010
    #5
    I wouldn't mind...how would I go about doing that with Terminal?
     
  6. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #6
    Code:
    touch -mt 202001010000 "/Users/username/Desktop/Folder Name" 
    
    This would do it - it sets the date modified to midnight 01/01/2020; but I've just tried it and as soon as you make a change to that folder it'll just correct the date modified.. so unless you're not making changes to that folder it won't really work, sorry.
     

Share This Page