Mad Libs: Difference between revisions

This is the applescript for mad libs
m (added two links for ;Related tasks:)
(This is the applescript for mad libs)
Line 349:
found a NOTETY STYLE pack. Al decided to take it home.
</pre>
 
=={{header|AppleScript}}==
set theNoun to the text returned of (display dialog "What is your noun?" default answer "")
set thePerson to the text returned of (display dialog "What is the person's name?" default answer "")
set theGender to the text returned of (display dialog "He or she? Please capitalize." default answer "")
display dialog thePerson & " went for a walk in the park. " & theGender & " found a " & theNoun & ". " & thePerson & " decided to take it home."
 
=={{header|AutoHotkey}}==
Like some other examples, this prompts the user for a text file template.<br/>AutoHotkey is interestingly well suited for this task...