Applescript
Posted: Sat May 29, 2010 3:27 pm
Yay, Nerd talk.
Anyway.
I suck at coding so bad that all i can do is applescript,
But im stuck,
I'm trying to create a simple folder lock and i dont know the code for closing a finder window.
Here is what i have:
on opening folder this_folder
display dialog "Do you want a cookie?" default answer "Im not sure" buttons {"I give up", "Go"} default button 2
copy the result as list to {Text_returned}
if the button returned of the result is "I give up" then
tell application "Finder" to quit
else
if Text_returned is "******" then
quit
else
tell application "Finder" to quit
end if
end if
end opening folder
NOthing is wrong with it except for the close folder window things.
So urr yh,
Any ideas?
I've done a google search with no luck.
Anyway.
I suck at coding so bad that all i can do is applescript,
But im stuck,
I'm trying to create a simple folder lock and i dont know the code for closing a finder window.
Here is what i have:
on opening folder this_folder
display dialog "Do you want a cookie?" default answer "Im not sure" buttons {"I give up", "Go"} default button 2
copy the result as list to {Text_returned}
if the button returned of the result is "I give up" then
tell application "Finder" to quit
else
if Text_returned is "******" then
quit
else
tell application "Finder" to quit
end if
end if
end opening folder
NOthing is wrong with it except for the close folder window things.
So urr yh,
Any ideas?
I've done a google search with no luck.