I am making an applescript droplet that does the following:
You drag a file to it and it moves it the this folder: /Users/Jack/.Trash
This is my script so far:
on open the_Droppings
display dialog "Are You Sure You Want Move The Dropped Item(s) to the Trash?" buttons {"Yes", "No"}
if the button returned of the result is "Yes" then
else
quit application
end if
end open
I don't know what to type after:
if the button returned of the result is "Yes" then
I was thinking along the lines of:
tell application "Finder"
move dropped files to "/Users/Jack/.Trash"
end tell
Thank you for taking the time to read my post and hopefully you can help.
P.S. Please don't give me the move to trash command. I want to do it like this for a reason. Thanks.
You drag a file to it and it moves it the this folder: /Users/Jack/.Trash
This is my script so far:
on open the_Droppings
display dialog "Are You Sure You Want Move The Dropped Item(s) to the Trash?" buttons {"Yes", "No"}
if the button returned of the result is "Yes" then
else
quit application
end if
end open
I don't know what to type after:
if the button returned of the result is "Yes" then
I was thinking along the lines of:
tell application "Finder"
move dropped files to "/Users/Jack/.Trash"
end tell
Thank you for taking the time to read my post and hopefully you can help.
P.S. Please don't give me the move to trash command. I want to do it like this for a reason. Thanks.