2009-02-22から1日間の記事一覧

改行コード指定

AppleScriptで改行コードだの何だのを指定する場合、「ASCII character(xx)」というふうに書く。 ASCII character 10 LFは10、CRは13、tabは9ですよ 参考 http://www.kiwi-us.com/~mizusawa/penguin/html_hint/applescript/index.html http://docs.info.appl…

ループ

repeat ... end repeat 途中で抜けるときは exit repeat

配列に入ってる文字をダイアログ表示

set theList to {} ... repeat with i from 1 to length of theList display dialog (text item i of theList) end repeat

AppleScriptで正規表現

perlを使うらしい。なるほど。 AppleScript で Perl の正規表現、そして one-liner

Social IME みんなで育てる日本語入力

Win専用。 これは将来性ありそうかも。会社で入れてみよう。 mac版はでないのかな? 追記 普通に使える感じですが 結局ATOK使用中。

正規表現を調べてる

set regexp to "s/.*(.*).*/$1/g" as Unicode text perl -Mutf8 -e 'utf8::decode($ARGV[0]); print $ARGV[0] if($ARGV[0] =~ " & regexp & ")' $1,$2,$3,.. 正規表現の(括弧)内にマッチしたものが格納されます。 -e この部分がスクリプトであることを示すオ…