Clean up code and add support for multiple operations in expression

This commit is contained in:
2021-03-01 16:44:33 -08:00
parent a95d054189
commit 291b7a906c
5 changed files with 71 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
set y to (display-dialog "Hello" with title 12 with type "yesno")
display-dialog "Goodbye" with title 21 with type "error"
do-shell-script "notify-send Test Notification"
print (display-dialog {"Test " + "2"} with title 30 with type "entry" with default "text")
do-shell-script {"echo " + (display-dialog {"Test " + "2"} with title 30 with type "entry" with default "text")}
set x to $y
print { 3+4 }
if {3 == 4} then display-dialog "What? Why is 3 equal to 4?" with title "What?!" with type "info"
if {3 == 3} then display-dialog "3 is equal to 3!" with title "New Discovery" with type "info"