1

I was wondering if anyone can give me some advice on how I can use apple script to delete this folder?

Users/user1/Library/Application Support/Skype/tankitan

  • Why would you need a apple script? is it a repetitive action (you use it more then once?) – Ruskes Oct 18 '14 at 17:02
3
tell application "Finder" to delete ((POSIX file "/Users/user1/Library/Application Support/Skype/tankitan") as alias)
-1

Perhaps this script clears up any 'tankitan' hooks while managing a specific external hook (s), for certain user1 or 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

Mind you, even a Rhodes POSIX can get tangled... Managing sticky-web c/o Internet of Things

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .