「AppleScript,Perl,Shell」OS Xでスクリプトスレ
■ このスレッドは過去ログ倉庫に格納されています
0064名称未設定
03/07/04 00:08ID:KANVjtym特定のファイルタイプのファイルをリストにしたいのですが、
property LstPictureFile : {}
property ListFileType : {"JFIF", "JPEG", "PNGf"}
on open ObjectList
repeat with Object in ObjectList
tell application "Finder"
set TxtFileType to file type of Object as string
end tell
repeat with TxtListedType in ListFileType
if (TxtFileType = (contents of TxtListedType)) then
set LstPictureFile to LstPictureFile & {alias (Object as string)}
end if
end repeat
end repeat
end open
と各項目と比較する方法しか解りません。
■ このスレッドは過去ログ倉庫に格納されています