Permalink
Browse files

Update the helloworld example

  • Loading branch information...
1 parent bec9df4 commit f5f9757f7b7bde421c8cccec92f094dd9ef9c005 @zachwill committed Jun 1, 2012
Showing with 15 additions and 5 deletions.
  1. +8 −0 hello_finder.applescript
  2. +7 −5 helloworld.applescript
View
@@ -0,0 +1,8 @@
+#!/usr/bin/osascript
+
+-- Usage: osascript helloworld.scpt
+
+tell application "System Events"
+ activate
+ display dialog "Hello, world!"
+end tell
View
@@ -1,8 +1,10 @@
#!/usr/bin/osascript
--- Usage: osascript helloworld.scpt
+-- It's basically this simple.
+set greeting to "Hello, world!"
-tell application "System Events"
- activate
- display dialog "Hello, world!"
-end tell
+-- But it looks better with new lines.
+set greeting to linefeed & greeting & linefeed
+
+-- Automatic output to terminal.
+greeting

0 comments on commit f5f9757

Please sign in to comment.