Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Just How Secure Are the 'Reset Safari' & 'Erase Free Space' Facility?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brown Study" data-source="post: 404436" data-attributes="member: 3889"><p>This is my Safari-quit script saved as an application. I don't use Safari's quit command when the paranoids are after me. (You must make and wear a tinfoil hat before running it, or it won't work.) Private Browsing is OK, but it can't delete a lot of stuff created by other apps that could make Safari's deletions moot.</p><p></p><p>At the bottom of the script, I set up the trash to open so I can see that the script ran properly. The trash closes when it securely deletes the files. "Enable GUI Scripting" must be turned on in the AppleScript Utility. A couple or three files and pathways are different in Intel Macs, and some, of course, wouldn't exist in any Mac if it doesn't have the same apps or has others I don't use.</p><p></p><p>Safari, though, creates a ton of junk to be trashed, and securely deleting it all after a long session is like watching paint dry. But I hardly ever run Safari. </p><p></p><p>Whenever I discover another app that leaves a trail, I add it to the script. I have another script for Firefox to take care of its unique properties, but it includes all the other apps this one does. Those, though, are a simple copy-and-paste job.</p><p></p><p>These scripts need constant updating, however. When I installed the newest Adobe Reader, for example, the pathway to the cookies changed. And Flash's " #SharedObjects" is tricky. It starts with a space.</p><p>[code]tell application "Safari"</p><p> quit</p><p>end tell</p><p>delay 2</p><p>tell application "Finder"</p><p> activate</p><p> if every item of folder "Safari" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete every item of folder "Safari" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "History.plist" of folder "Safari" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "History.plist" of folder "Safari" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "Cookies.plist" of folder "Cookies" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "Cookies.plist" of folder "Cookies" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "Acrobat WebCapture Cookies" of folder "8.0_ppc" of folder "Acrobat" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "Acrobat WebCapture Cookies" of folder "8.0_ppc" of folder "Acrobat" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if every item of folder "TemporaryItems" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete every item of folder "TemporaryItems" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if every item of folder "Recent Applications" of folder "Apple Menu Items" of folder "Classic" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete every item of folder "Recent Applications" of folder "Apple Menu Items" of folder "Classic" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if every item of folder "Stuffit Deluxe Recent Items" of folder "Allume" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete every item of folder "Stuffit Deluxe Recent Items" of folder "Allume" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if folder "#SharedObjects" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete folder "#SharedObjects" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if folder "macromedia.com" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete folder "macromedia.com" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "com.apple.Preview.bookmarks.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "com.apple.Preview.bookmarks.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "com.apple.Preview.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "com.apple.Preview.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "com.apple.quicktimeplayer.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "com.apple.quicktimeplayer.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "org.videolan.vlc.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete file "org.videolan.vlc.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if every item of folder "downloads" of folder "QuickTime" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then</p><p> delete every item of folder "downloads" of folder "QuickTime" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk</p><p> end if</p><p> if file "com.RealNetworks.RealPlayer.plist" of folder "Preferences" of folder "Brown Study" of folder "Library" of folder "Users" of startup disk exists then</p><p> delete file "com.RealNetworks.RealPlayer.plist" of folder "Preferences" of folder "Brown Study" of folder "Library" of folder "Users" of startup disk</p><p> end if</p><p> delay 2</p><p> make new Finder window to trash</p><p> set current view of Finder window 1 to list view</p><p> set toolbar visible of Finder window 1 to false</p><p> set bounds of Finder window 1 to {234, 587, 797, 768}</p><p>end tell</p><p>delay 1</p><p>tell application "System Events" to tell application process "Finder"</p><p> set frontmost to true</p><p> (* to get the exact menu item number</p><p>get name of every menu item of menu "Finder" of menu bar item "Finder" of menu bar 1</p><p>get name of menu item 7 of menu "Finder" of menu bar item "Finder" of menu bar 1</p><p>*)</p><p> click menu item 7 of menu "Finder" of menu bar item "Finder" of menu bar 1</p><p> keystroke return</p><p>end tell[/code]</p></blockquote><p></p>
[QUOTE="Brown Study, post: 404436, member: 3889"] This is my Safari-quit script saved as an application. I don't use Safari's quit command when the paranoids are after me. (You must make and wear a tinfoil hat before running it, or it won't work.) Private Browsing is OK, but it can't delete a lot of stuff created by other apps that could make Safari's deletions moot. At the bottom of the script, I set up the trash to open so I can see that the script ran properly. The trash closes when it securely deletes the files. "Enable GUI Scripting" must be turned on in the AppleScript Utility. A couple or three files and pathways are different in Intel Macs, and some, of course, wouldn't exist in any Mac if it doesn't have the same apps or has others I don't use. Safari, though, creates a ton of junk to be trashed, and securely deleting it all after a long session is like watching paint dry. But I hardly ever run Safari. Whenever I discover another app that leaves a trail, I add it to the script. I have another script for Firefox to take care of its unique properties, but it includes all the other apps this one does. Those, though, are a simple copy-and-paste job. These scripts need constant updating, however. When I installed the newest Adobe Reader, for example, the pathway to the cookies changed. And Flash's " #SharedObjects" is tricky. It starts with a space. [code]tell application "Safari" quit end tell delay 2 tell application "Finder" activate if every item of folder "Safari" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete every item of folder "Safari" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "History.plist" of folder "Safari" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "History.plist" of folder "Safari" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "Cookies.plist" of folder "Cookies" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "Cookies.plist" of folder "Cookies" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "Acrobat WebCapture Cookies" of folder "8.0_ppc" of folder "Acrobat" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "Acrobat WebCapture Cookies" of folder "8.0_ppc" of folder "Acrobat" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if every item of folder "TemporaryItems" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete every item of folder "TemporaryItems" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if every item of folder "Recent Applications" of folder "Apple Menu Items" of folder "Classic" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete every item of folder "Recent Applications" of folder "Apple Menu Items" of folder "Classic" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if every item of folder "Stuffit Deluxe Recent Items" of folder "Allume" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete every item of folder "Stuffit Deluxe Recent Items" of folder "Allume" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if folder "#SharedObjects" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete folder "#SharedObjects" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if folder "macromedia.com" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete folder "macromedia.com" of folder "Flash Player" of folder "Macromedia" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "com.apple.Preview.bookmarks.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "com.apple.Preview.bookmarks.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "com.apple.Preview.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "com.apple.Preview.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "com.apple.quicktimeplayer.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "com.apple.quicktimeplayer.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "org.videolan.vlc.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete file "org.videolan.vlc.plist" of folder "Preferences" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if every item of folder "downloads" of folder "QuickTime" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk exists then delete every item of folder "downloads" of folder "QuickTime" of folder "Caches" of folder "Library" of folder "Brown Study" of folder "Users" of startup disk end if if file "com.RealNetworks.RealPlayer.plist" of folder "Preferences" of folder "Brown Study" of folder "Library" of folder "Users" of startup disk exists then delete file "com.RealNetworks.RealPlayer.plist" of folder "Preferences" of folder "Brown Study" of folder "Library" of folder "Users" of startup disk end if delay 2 make new Finder window to trash set current view of Finder window 1 to list view set toolbar visible of Finder window 1 to false set bounds of Finder window 1 to {234, 587, 797, 768} end tell delay 1 tell application "System Events" to tell application process "Finder" set frontmost to true (* to get the exact menu item number get name of every menu item of menu "Finder" of menu bar item "Finder" of menu bar 1 get name of menu item 7 of menu "Finder" of menu bar item "Finder" of menu bar 1 *) click menu item 7 of menu "Finder" of menu bar item "Finder" of menu bar 1 keystroke return end tell[/code] [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Just How Secure Are the 'Reset Safari' & 'Erase Free Space' Facility?
Top