After I realised how easy it was for me to download a UNIX executable, or an application without knowing it, and launching it, I started work on a script that showed the information window of a new downloaded item. I plan on saving the script as a folder action, and attaching it to my desktop (my default downloads file). So far I have managed:
on adding folder items to this_folder after receiving these_items
tell application "Finder"
display dialog "Would you like to open the information window of your downloaded items?" buttons {"Yes", "No"} default button 1
if the button returned of the result is "Yes" then
open information window of ?
end if
end tell
end adding folder items to
Can someone please edit the question mark on the 6th line, because I'm not too sure on what to do here. Sorry about the simpleness of my problem-scripting is a completely self-taught subject for me.
on adding folder items to this_folder after receiving these_items
tell application "Finder"
display dialog "Would you like to open the information window of your downloaded items?" buttons {"Yes", "No"} default button 1
if the button returned of the result is "Yes" then
open information window of ?
end if
end tell
end adding folder items to
Can someone please edit the question mark on the 6th line, because I'm not too sure on what to do here. Sorry about the simpleness of my problem-scripting is a completely self-taught subject for me.