私の質問がばかげているように見えたら、私は初心者の申し訳ありません。
現在、すべての.webarchiveを.htmlに変換するスクリプトを作成しようとしているため、「iCab」というアプリケーションを使用して.webarchiveを開き、.htmlに保存することになります。
これが、すべての.webarchiveを保存フォルダーに置いた質問です。すべてを1つずつ開くにはループが必要なので、このコードのフラグメントをループ内に配置できます。
tell application "iCab" to open file file_name
tell application "iCab" to activate
delay 1
tell application "System Events"
tell process "iCab"
click menu item "Save As…" of menu "File" of menu bar 1
key code 76
click menu item "Close Window" of menu "File" of menu bar 1
end tell
end tell
前もって感謝します