Economy-x-Talk - Sample Scripts
Answer AS
Compare this script with the Answer HT script.
set theString to background field 1 as string
set theResult to (display dialog theString buttons {"OK", "Cancel!"} ¬
default button "Cancel!" with icon caution)
return the result
on answerAS
put line 1 to 4 of script of me into theScript
do theScript as appleScript
put the result into theResult
if "OK" is in theResult then
play boing c e g e c5
else if "Cancel" is in theResult then
beep
end if
end answerAS
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.