Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #this logs text to stdout
  2. log("foobar")
  3. #define a variable
  4. set moo to 9
  5. log(moo)
  6. #get the window dimensions of the Iterm2 window:
  7. tell application "Iterm2" to set window_geometry to (get the bounds of the front window)
  8. log(window_geometry)
  9. tell app "Finder" to display dialog "hello world"
  10.  
  11. osascript demo.scpt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement