如果我的问题看起来很愚蠢,我只是一个初学者对不起。
现在我正在尝试编写一个脚本,将我所有的 .webarchive 转换为 .html,所以我最终使用名为“iCab”的应用程序打开 .webarchive 并将其保存到 .html
这是我的所有 .webarchive 在保存文件夹中的问题,我需要一个循环来一个一个地打开它,所以我可以把这段代码放在循环中
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
先感谢您