tmp_2.applescript

来自「Mac OS X 平台一文本编辑器的源代码」· APPLESCRIPT 代码 · 共 17 行

APPLESCRIPT
17
字号
(*嵟慜柺偺僂傿儞僪僂偺慖戰斖埻傪 property newStr  偵愝掕偝傟偨暥帤楍偱抲偒姺偊傞僗僋儕僾僩丅偙偺椺偱偼丄乽TEMPLATE乿偵抲姺偟傑偡丅張棟屻偼丄乽TEMPLATE乿偺捈屻偵僉儍儗僢僩傪堏摦偟傑偡丅*)(* written by nakamuxu. 2005.04.14 *)--property newStr : "TEMPLATE"----tell application "CotEditor"	if exists front document then		set {loc, len} to range of selection of front document		set numOfMove to count of character of newStr		set contents of selection of front document to newStr		set range of selection of front document to {loc + numOfMove, 0}	end ifend tell

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?