• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script to clear Safari?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to clear Safari?


  • Subject: Re: Script to clear Safari?
  • From: email@hidden
  • Date: Wed, 16 Mar 2016 12:04:03 -0700

I write to follow up with an answer to my questions about an AppleScript
to clear Safari's history, cookies, etc.

I've been using the script Koenig suggested (Pasted below and in the
following thread:
http://lists.apple.com/archives/applescript-users/2016/Feb/msg00159.html)
and it has worked perfectly and quickly for several weeks as an
application.

Thank you all for your help.

-DB

---------

on run {input, parameters}

	tell application "Safari"
		close every window
	end tell

	set theApp to "Safari"
	set mt to 6
	set mi to -2

	tell application "System Events" to tell process theApp
		set frontmost to true
		tell menu bar 1 to tell menu bar item mt to ¬
			tell menu 1
			click menu item mi
			end tell
		tell window 1
		click button 2
		end tell
	end tell

	return input
end run

---------


 _______________________________________________
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


  • Prev by Date: Re: AppleScript-ObjC Syntax Problem on NSArray count method?
  • Next by Date: Word 2011 - Executing VBA from an AppleScript?
  • Previous by thread: Re: AppleScript-ObjC Syntax Problem on NSArray count method?
  • Next by thread: Word 2011 - Executing VBA from an AppleScript?
  • Index(es):
    • Date
    • Thread