I want to delete a folder Called Vsearch and anything that is in it, in the path below and it is not working. Tried several different ways but with now luck.
Any help is appreciated!
tell application “System Events”
set theStartupdisk to (name of startup disk)
end tell
try
tell application "Finder" to delete ({POSIX file theStartupdisk & ":" & "/Library/Application Support/Vsearch/"} as alias)
end try
of course you have to remove the space characters in the tags
There is a “shortcut” to the application support folder
set applicationSupportFolder to path to application support folder
tell application "Finder"
if exists folder "Vsearch" of applicationSupportFolder then
delete folder "Vsearch" of applicationSupportFolder
end if
end tell