Mi stavo chiedendo se qualcuno può darmi qualche consiglio su come utilizzare lo script Apple per eliminare questa cartella?
Utenti / utente1 / Libreria / Supporto applicazioni / Skype / tankitan
tell application "Finder" to delete ((POSIX file "/Users/user1/Library/Application Support/Skype/tankitan") as alias)
Forse questo script cancella tutti gli hook "tankitan" mentre gestisci uno o più hook esterni specifici, per alcuni user1 o username (s)
(* Ashley Rhodes https://mrashrhodes.wordpress.com/2015/03/18/simple-delete-files-and-folders-script-applescript/ *)
tell application "System Events"
set deleted to POSIX file "/Users/username/Library/Caches/"
tell application "Finder"
delete (files of folder deleted)
delete (folders of folder deleted)
end tell
set deleted to POSIX file "/Users/username/Library/Cookies/"
tell application "Finder"
delete (files of folder deleted)
delete (folders of folder deleted)
end tell
set deleted to POSIX file "/Users/username/Library/Saved Application State/"
tell application "Finder"
delete (files of folder deleted)
delete (folders of folder deleted)
end tell
set deleted to POSIX file "Users/user1/Library/Application Support/Skype/tankitan"
tell application "Finder"
delete (files of folder deleted)
delete (folders of folder deleted)
end tell
end tell
Attenzione, anche a Rodi POSIX può essere aggrovigliato ... Gestione di sticky-web c / o Internet of Things
Leggi altre domande sui tag applescript