So I got this wonderful little application (made with apple script) that goes inside my downloads stack, so that I can click on it, and it deletes everything inside the downloads folder,
However there is a single folder that I need to keep inside the downloads stack,
the folder is named "Download"
this is the script i am trying to edit,
It looks obvious what needs to be edited, however I dont even know where to begin when it comes to apple script!
any help would be great,
thanks,
However there is a single folder that I need to keep inside the downloads stack,
the folder is named "Download"
this is the script i am trying to edit,
Code:
try
tell application "Finder"
set the_items to (every item of (path to downloads folder as alias) whose name is not "Delete All.app")
delete the_items
end tell
on error
tell application "Finder" to display dialog "An error occurred!" with icon 0 buttons {"Damn"} default button 1
end try
It looks obvious what needs to be edited, however I dont even know where to begin when it comes to apple script!
any help would be great,
thanks,