2009/09/29

Snow Leopard creator code

なんですと。クリエータコードがなくなってる?
http://d.hatena.ne.jp/tanemori/20090914/SnowLeopardKillsDocumentCreatorCodes
http://www.tidbits.com/tb-issues/lang/jp/TidBITS-jp-994.html#lnk9

では早速、OS 10.6.1 で TextEdit.app を起動し適当に文字うってコマンド+S
GetFileInfo コマンドを使ってクリエイターがなくなっているかみてみた。

% GetFileInfo ~/Desktop/e.txt
file: "/Users/midore/Desktop/e.txt"
type: "\0\0\0\0"
creator: "\0\0\0\0"
attributes: avbstclinmedz
created: 09/29/2009 22:37:08
modified: 09/29/2009 22:37:08


たしかに creator も file type も0で埋まっている。以前だったらなにかしら名前が入っていたはず。
ということは?ーAppleScript からもみてみよう。

# 10.6.1 の AppleSciprt ヴァージョン
set a to AppleScript's version

# あいまいな記憶の中を漂いながら書いてるからちょっとおかしい...とりあえず
# 最後にとらえたファイルのクリエイタータイプ情報を結果表示できた。
tell application "Finder"
	activate
	set f to files of desktop
	repeat with i in f
		#set b to name of i
		#set c to properties of i
		set d to creator type of i
	end repeat
end tell
{a, d}

# =>
#{"2.1", missing value}


たしかに、missing value になっている。AppleScipt の Version もあがっている。

AppleScript Editor.appもいろいろ変わったみたい。
環境設定からタブ幅を指定できるようにもなってる。
でも、タブをスペースに変換はないのね。

0 件のコメント: