This file contains 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
# 長押しで連続した文字列を入力 | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
# アクサンや発音記号を入力 | |
defaults delete -g ApplePressAndHoldEnabled |
This file contains 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
--88行目 テンプレートを切り替える ------------------------------------------------------------------- | |
to switchTemplateType(templateType) | |
-- 追加してみた -------------------------------------------------------------------------- | |
if templateType is equal to "追加してみた" then | |
set mainTemplate to "<a href=\"%{sourceURL}\">%{escapeTitle}</a>" | |
set beforeTemplate to "LINK: " | |
set afterTemplate to "%{date}" | |
set imageWidth to 120 | |
set imageHeight to 120 | |
set dateFormat to "+%Y年%m月%d日" |
This file contains 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
-- 205行目 出力するための文字列を作成する ---------------------------------------------------------- | |
to formattedText(objs) | |
-- フォーマット選択の選択項目を設定する | |
set templateTypes to {"追加してみた", "Simple", "Simple with Thumbnail", "List", "List with Thumbnail", "Blockquote", "Blockquote with Thumbnail"} |
This file contains 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
(* | |
script DataObject の中をカスタマイズすることで大抵のことができるようになっています。 | |
-- 下の配列を定義する部分を探して要素を追加してフォーマットを選択する画面に選択項目を追加 | |
set templateTypes to {"Simple", "Simple with Thumbnail", "List", "List with Thumbnail"} | |
--『to switchTemplateType(templateType)』内に条件式を追加 | |
if templatetype is equal to "追加した選択項目" then |
This file contains 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
chmod +x <ダウンロードしたファイルのパス> |
This file contains 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
#!/bin/bash | |
# 使用するときはここのパスを追加したいバージョンのXcodeのパスに変更してください。 | |
XCODE="/Applications/Xcode.app" | |
XCODE_ID=`find ${XCODE} -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID` | |
PLUGINS=`find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3` | |
add_XcodeID() { |
This file contains 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
#!/bin/bash | |
# <Xcode UUID>を確認するコマンド ============================================================================================== | |
# このコマンドで出力された文字列がプラグインの互換性チェックをごまかすための文字列になります。 | |
# Xcode.app の部分は対応させたいXcode.appに変更してください。 | |
find /Applications/<Xcode.app> -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID | |
# すべてのプラグインの互換性チェックをごまかすコマンド ============================================================================== | |
# <Xcode UUID> は上のコマンドで出力された文字列です。 | |
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add <Xcode UUID> |
This file contains 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
#!/bin/bash | |
cd ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/ | |
open -a TextEdit ./<プラグインのファイル名>/Contents/Info.plist | |
# ファイルを開いたら『DVTPlugInCompatibilityUUIDs』を探して値に | |
# 『AD68E85B-441B-4301-B564-A45E4919A6AD』を追加する |