Skip to content

Instantly share code, notes, and snippets.

@herbmann
Created May 26, 2011 19:13
Show Gist options
  • Save herbmann/993825 to your computer and use it in GitHub Desktop.
Save herbmann/993825 to your computer and use it in GitHub Desktop.
Restoring file position on the Desktop
hmann@SAL9000:~/Desktop$ cp .DS_Store .DS_Store_backup
hmann@SAL9000:~/Desktop$ # SORT BY NAME - IRRITATING MISTAKE
hmann@SAL9000:~/Desktop$ cp .DS_Store_backup .DS_Store
hmann@SAL9000:~/Desktop$ killall Finder
hmann@SAL9000:~/Desktop$ # EVERYTHING BACK WHERE IT BELONGS
hmann@SAL9000:~/Desktop$
This also works for copying old .DS_Store files out of Time Machine backups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment