Help. I need a script that can help me remove some pirated software from some of my users systems. A very simple script that would delete specific folders from the Applications folder, specific files from the preferences folder, and then empty the trash.
I’m close but I havent used applescript for years. How do you specify a folder or file to be moved?
tell application “Finder”
repeat with i from 1 to count of folders_ToDelete
delete ((parent_Folder as text) & (item i of folders_ToDelete as text)) & “:”
end repeat
end tell
Where HD is the name of you Hard Drive and Parent Folder is the name of the Parent Folder.