This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bypass MacOS Gatekeeper | |
| #------------------------ | |
| #usage: xattr [-l] [-r] [-s] [-v] [-x] file [file ...] | |
| # xattr -p [-l] [-r] [-s] [-v] [-x] attr_name file [file ...] | |
| # xattr -w [-r] [-s] [-x] attr_name attr_value file [file ...] | |
| # xattr -d [-r] [-s] attr_name file [file ...] | |
| # xattr -c [-r] [-s] file [file ...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- https://gist.github.com/mrienstra/8330528 | |
| -- Based on http://www.tuaw.com/2012/12/24/applescript-desktop-icon-race/ | |
| -- Inspired by http://namesakecomic.com/comic/happy-new-year-from-namesake/#comment-1182035013 | |
| -- Rearranges Desktop icons to flow from left to right, top to bottom. | |
| -- To have this run automatically every time files are added or removed from the Desktop, set this script to run as a Desktop "Folder Action". (See https://developer.apple.com/library/mac/documentation/applescript/conceptual/applescriptlangguide/reference/ASLR_folder_actions.html ) | |
| -- This is currently a rough proof-of-concept. It has only been tested with OS X 10.8.5 (Mountain Lion). |