2021-03-01 21:43:10 +00:00
|
|
|
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"
|
2021-03-02 00:44:33 +00:00
|
|
|
do-shell-script {"echo " + (display-dialog {"Test " + "2"} with title 30 with type "entry" with default "text")}
|
2021-03-01 21:43:10 +00:00
|
|
|
set x to $y
|
2021-03-02 03:43:06 +00:00
|
|
|
|
|
|
|
if {3 == 3} {
|
|
|
|
set x to "hi"
|
|
|
|
do-shell-script {"echo " + $x}
|
|
|
|
display-dialog "3 is equal to 3!" with title "New Discovery" with type "info"
|
|
|
|
if {3 == 4} {
|
|
|
|
display-dialog "What? Why is 3 equal to 4?" with title "What?!" with type "error"
|
|
|
|
do-shell-script "echo hi"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-02 04:18:52 +00:00
|
|
|
do-shell-script "echo rpt"
|
|
|
|
|
|
|
|
repeat 5 times { z in
|
|
|
|
do-shell-script {"echo " + (string $z)}
|
|
|
|
}
|