• 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
Safari Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari Script


  • Subject: Safari Script
  • From: John Lynch <email@hidden>
  • Date: Sun, 9 Nov 2003 11:10:49 -0800

I'm new to Apple script, and I wanted to write a script that would
empty the cache, clear history and close safari. I've tried this little
nugget:
tell application "safari"
activate
select menu "clear history"
"clear history"
select menu "safari"
"empty cache"
quit
end tell
The only thing this script does is close the safari program. Like I
said, I'm new to scripting. I was wondering what else I need to do to
get this to work. I'm using Apple Script 1.9 on OS 10.2. Thanks.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Print PDF page by page
  • Next by Date: Re: Auto completion
  • Previous by thread: Getting networking information
  • Next by thread: Replace å-ä-ö whit applescript.
  • Index(es):
    • Date
    • Thread