Puede agregar un diccionario NSUserKeyEquivalents a ~ / Library / Containers / com.apple.Preview / Data / Library / Preferences / com.apple.Preview.plist.
defaults write -app preview NSUserKeyEquivalents '{
"Single Page" = "@1";
"Two Pages" = "@2";
"Continuous Scroll" = "@3";
"Adjust Size..." = "~@i";
"Adjust Color..." = "@u";
}'
Los accesos directos para todas las aplicaciones están en ~ / Library / Preferences / .GlobalPreferences.plist.
defaults write -g NSUserKeyEquivalents '{
"Show in Finder" = "$@r";
"Reveal" = "$@r";
"Delete Row" = "~@\b";
"Delete Rows" = "~@\b";
"Delete Column" = "$@\b";
"Delete Columns" = "$@\b";
"Minimize" = "defaults write -app preview NSUserKeyEquivalents '{
"Single Page" = "@1";
"Two Pages" = "@2";
"Continuous Scroll" = "@3";
"Adjust Size..." = "~@i";
"Adjust Color..." = "@u";
}'
";
"Minimize All" = "defaults write -g NSUserKeyEquivalents '{
"Show in Finder" = "$@r";
"Reveal" = "$@r";
"Delete Row" = "~@\b";
"Delete Rows" = "~@\b";
"Delete Column" = "$@\b";
"Delete Columns" = "$@\b";
"Minimize" = "%pre%";
"Minimize All" = "%pre%";
}'
";
}'
El formato del acceso directo se describe en el artículo Cocoa Text System . La opción -app no funciona con algunas aplicaciones como Finder o Notes. Si un elemento del menú se asignó a cero, al presionar L se activaría en Audacity.