Home > AppleScript > [ AppleScript ] Finder で選択しているファイルにコメントを付けるサンプル

[ AppleScript ] Finder で選択しているファイルにコメントを付けるサンプル

Finder で選択しているファイルすべてにコメントを付ける AppleScript のサンプルです。スクリプトメニューから実行できるので便利。

既にコメントが存在した場合、既存のコメントを上書きしますので、取り扱いにご注意下さい。

display dialog "Comment ?" default answer "Comment" with icon 1
set myTitle to text returned of result
tell application "Finder"
  repeat with thisF in (selection as list)
    set comment of thisF to myTitle
  end repeat
end tell

動作確認:Mac OS 10.4.6

関連する記事

Comments: 0

Comment Form
Remember personal info

Trackback+Pingback: 0

TrackBack URL for this entry
http://bowz.info/1236/trackback
Listed below are links to weblogs that reference
[ AppleScript ] Finder で選択しているファイルにコメントを付けるサンプル from Bowz::Notebook

Home > AppleScript > [ AppleScript ] Finder で選択しているファイルにコメントを付けるサンプル

タグクラウド

Return to page top