Closing Safari Tab...
Closing Safari Tab...
- Subject: Closing Safari Tab...
- From: David Crowe <email@hidden>
- Date: Sat, 10 Dec 2011 11:42:13 -1000
Title: Closing Safari Tab...
I am having difficulty closing tabs in a Safari window with
multiple tabs.
Take this for example:
tell application "Safari"
to tell
window 1
close tab 1
end
tell
Can't get much simpler than that, but while it sometimes works I
usually get: "Safari got an error:
NSInternalScriptError".
The last time I ran it it worked the first time and then
consistently failed.
What I'd really like to do is close all tabs other than the
current one. While I can do that through ctrl-clicking on the tab,
automating it is another matter.
Thanks for any assistance.
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden