2

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

1
  • Why would you need a apple script? is it a repetitive action (you use it more then once?)
    – Ruskes
    Commented Oct 18, 2014 at 17:02

2 Answers 2

5
tell application "Finder" to delete ((POSIX file "/Users/user1/Library/Application Support/Skype/tankitan") as alias)
0
-2

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 .