Tuesday, July 17, 2018

#1 2003-04-14 09:49:52 am

Ray Barber
Site Admin
From:: Lake Dallas, Texas
Registered: 2002-11-20
Posts: 348
Website

Safari History is history, pt. 2.

Unlike the following example, this code will delete Safari's history by using the Finder. From the AppleScript Users List.

OS version: OS X

Applescript:

set f to "" & (path to "cusr") & "library:safari:history.plist"
tell app "Finder" to if exists file f then move file f to the trash
tell app "Safari" to quit
do shell script "open -a safari"


Ray Barber
Admin | MacScripter

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)