Simple windowed application: Difference between revisions

Content added Content deleted
(→‎{{header|Scratch}}: changed (header->subheader)->bold, since it does not belong in the toc.)
Line 554: Line 554:


∇</lang>
∇</lang>


=={{header|Applescript}}==
<lang Applescript>
set counter to 0

set dialogReply to display dialog ¬
"There have been no clicks yet" buttons {"Click Me", "Quit"} ¬
with title "Simple Window Application"
set theAnswer to button returned of the result
if theAnswer is "Quit" then quit

repeat
set counter to counter + 1
set dialogReply to display dialog counter buttons {"Click Me", "Quit"} ¬
with title "Simple Window Application"
set theAnswer to button returned of the result
if theAnswer is "Quit" then exit repeat
end repeat
</lang>

===Description===
Applescript is the MacOS system automation language which creates scripts in various forms, including double-clickable applications, scripted folder actions, inner and inter application control and services, and more.


[http://https://www.melellington.com/simplewindow/Applescript-SWA.jpg
Applescript Output]


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==