AppleScript para eliminar carpeta

0

Me preguntaba si alguien me puede dar algún consejo sobre cómo puedo usar Apple script para eliminar esta carpeta.

Usuarios / usuario1 / Biblioteca / Soporte de aplicaciones / Skype / tankitan

    
pregunta Tankitan 18.10.2014 - 17:47

2 respuestas

2
tell application "Finder" to delete ((POSIX file "/Users/user1/Library/Application Support/Skype/tankitan") as alias)
    
respondido por el grg 18.10.2014 - 17:49
-1

Quizás esta secuencia de comandos borra cualquier enganche 'tankitan' al administrar un o más ganchos externos específicos, para cierto usuario1 o nombre de usuario (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

Eso sí, incluso un Rhodes POSIX puede enredarse ... Administrar sticky-web c / o Internet of Things

    
respondido por el mark stewart 19.02.2018 - 05:51

Lea otras preguntas en las etiquetas