タブを閉じる方法をここを含めてどこでも検索しました。私は動作するはずのこのコードを持っています:
tell application "Safari"
repeat with aWindow in windows
repeat with aTab in tabs of aWindow
if name of aTab is "Facebook" then
tell aTab to close
end if
end repeat
end repeat
end tell
Facebook のタブを開いていますが、機能しません。ただし、ウィンドウ全体を閉じると、コードは機能するように見えました…</p>
ありがとう!