DTP駆け込み寺

No.12092へ返信

記事投稿フォーム
補助
送信

[ 返信 ]

Re^9: 画像のピクセル数を一覧表示

動かないと言うことですね。

これでどうでしょう?10.4環境が無いので未検証です。

tell application "Finder"
set {a1, a3} to {selection, ""}
repeat with a2 in a1
set a3 to (a3 & "'" & POSIX path of (a2 as alias)) & "' "
end repeat
set a3 to do shell script "sips -g pixelWidth -g pixelHeight " & a3
end tell
tell application "TextEdit" to set text of (make new document) to a3

私が書いた整形というのは、結果として出てくる物が整形しないとわかりづらいと言うことでした。

[12092] 小泉 (2011/05/23 Mon 20:30) web