diff --git a/keynote-format-presenter-notes.applescript b/keynote-format-presenter-notes.applescript new file mode 100644 index 0000000..3775231 --- /dev/null +++ b/keynote-format-presenter-notes.applescript @@ -0,0 +1,4 @@ +tell application "Keynote" + set font of presenter notes of every slide of document 1 to "TrebuchetMS" + set size of presenter notes of every slide of document 1 to 24 +end tell \ No newline at end of file diff --git a/keynote-image-scale.applescript b/keynote-image-scale.applescript new file mode 100644 index 0000000..5eb125e --- /dev/null +++ b/keynote-image-scale.applescript @@ -0,0 +1,5 @@ +tell application "Keynote" + tell last image of current slide of front document + set width to 3 * width + end tell +end tell \ No newline at end of file diff --git a/xcode-clang-format.applescript b/xcode-clang-format.applescript index 3ac84b4..3f23a36 100755 --- a/xcode-clang-format.applescript +++ b/xcode-clang-format.applescript @@ -75,7 +75,7 @@ on front_source_document() if _name ends with _edited_suffix then set _name to (characters 1 thru ((the length of _name) - (length of _edited_suffix)) of _name as string) end if - repeat with _document in (source documents whose name is _name) + repeat with _document in (documents whose name is _name) if selected paragraph range of _document is not {} then my save_document() return _document @@ -106,7 +106,7 @@ tell application "Xcode" set _path to path of _document try - do shell script "/usr/local/bin/clang-format -lines=" & item 1 of _range & ":" & item 2 of _range & " " & quoted form of _path & "> /tmp/xcode-clang-format.tmp" + do shell script "source ~/.bash_profile;/usr/local/bin/clang-format -lines=" & item 1 of _range & ":" & item 2 of _range & " " & quoted form of _path & "> /tmp/xcode-clang-format.tmp" on error error_message display alert "clang-format failed" message error_message buttons {"OK"} default button "OK" return