![]() ![]() Tell application "Safari" to if it is running then quitĬlick the hammer icon within the Run AppleScript action to compile the AppleScript code, and then you can save the Automator Application to your Desktop. # because if you don't do this, the next time you open Preferences it will be hung Select row 1 of table 1 of scroll area 1 of sheet 1ĭisplay alert "No cookies to remove" giving up after 5ĭisplay alert "Selected cookies removed" giving up after 5 give cookies time to load in their scrollable window Tell application "Safari" to if it is not running then activateĬlick button "Privacy" of toolbar 1 of itĬlick button "Manage Website Data…" of group 1 of group 1 # Safari must be running before this script can work properly Set deCookie to (read file (input as text) as text using delimiter linefeed) as list # read the contents of the input text file and automatically generate a list of cookies to remove # input is the name of the file passed in from Get Specified Finder Items Select and remove everything in this Run AppleScript action. The Run AppleScript action will default to a boilerplate on run handler.
0 Comments
Leave a Reply. |