Skip to content

Instantly share code, notes, and snippets.

@cjaoude
cjaoude / chmod-tutorial.md
Last active May 7, 2024 11:58
chmod tutorial / cheat sheet / cheatsheet / for dummies

chmod
Forget the chmod octals (the numbers). Set permission the easy way using the keywords

// know the ownerships:
u = User (you)
g = Group
o = Other (aka. 'World')
a = All of the above

@derickfay
derickfay / BibDesk-MavericksTags.scpt
Last active January 26, 2016 17:13
Adds the Keywords from the current selection in BibDesk to all linked files as Mavericks tags.
set plistFront to "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"><plist version=\"1.0\"><array>"
set plistEnd to "</array></plist>"
(* By Derick Fay, 2013-10-28 *)
(* Thanks to http://mosx.tumblr.com/post/54049528297/convert-openmeta-to-os-x-mavericks-tags-with-this for getting me started *)
tell application "BibDesk"
-- without document, there is no selection, so nothing to do
if (count of documents) = 0 then