Created
August 5, 2014 11:32
-
-
Save takatomo/359cec36d8b88d383cff to your computer and use it in GitHub Desktop.
【AppleScript】MarsEdit-MakeLink (抜粋 テンプレート内容).scpt
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日" | |
end if | |
-- Simple Template ----------------------------------------------------------------------- | |
if templateType is equal to "Simple" then | |
set mainTemplate to "<a href=\"%{sourceURL}\" target=\"_blank\">%{escapeTitle}</a><br /> | |
" | |
set beforeTemplate to " | |
" | |
set afterTemplate to "" | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment