このエントリーに関連する記事
loading...
OSXのフリーソフト紹介、基本的な使い方を解説。
<a href="applescript://com.apple.scripteditor?コピーしてもらいたいコード">リンク名</a>上記のような形でリンクを貼るだけです。set myString to the clipboard
set myStringConv to ""
set beforeList to {"%", " ", ASCII character (10), ASCII character (13), ASCII character (34), ASCII character (9)}
set afterList to {"%25", "%20", "%0a", "%0a", "%22", "%20%20"}
set oldDel to text item delimiters of AppleScript
set i to 1
repeat with x in beforeList
set text item delimiters of AppleScript to x
set mylist to every text item of myString
set text item delimiters of AppleScript to item i of afterList
set myString to mylist as string
set i to i + 1
end repeat
set text item delimiters of AppleScript to oldDel
set myString to "<a href=" & (ASCII character (34)) & "applescript://com.apple.scripteditor?action=new&script=" & myString & (ASCII character (34)) & "> </a>"
set the clipboard to myStringこのAppleScriptをスクリプトエディタで開く