私はこの答えを探して何時間もネット上を見回したので、どこかにある場合はお詫び申し上げます。以下のこのスクリプトは、.DS_Store ファイルを返すという事実を除いて正常に動作しますが、このクエリと他のすべての隠しファイルからそれを除外するにはどうすればよいですか?
tell application "System Events" set listOfInputs to POSIX path of all disk item of all disk items a folder as list end tell
これが以下の完全なスクリプトです。作成後に in フォルダーにファイルをドロップしてきましたが、最終的には作成前にファイルの入力を求めるメッセージが表示されます。
実行中
tell application "Finder"
if not (exists folder "IN") then
make new folder at desktop with properties {name:"IN"}
end if
if not (exists folder "OUT") then
make new folder at desktop with properties {name:"OUT"}
end if
end tell
set theINfolder to path to the desktop as string
set a to theINfolder & "IN:"
tell application "System Events"
set listOfInputs to POSIX path of every disk item of folder a as list
end tell
set inputs to listOfInputs
set theOutfolder to path to the desktop as string
set outputFolder to theOutfolder & "OUT:"
set params to {}
main(inputs, outputFolder, params)
エンドラン