Skip to content
Browse files

Hows about an AppleScript example?

  • Loading branch information...
1 parent e9d90db commit d57b997e1615a35c1c10f3c310f601f975d342b0 @ccgus committed Sep 12, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 applescript/Auto Levels.applescript
View
16 applescript/Auto Levels.applescript
@@ -0,0 +1,16 @@
+tell application "Acorn"
+
+ -- open up our document
+ set doc to open ((path to home folder as rich text) & "Pictures:MyImage.png")
+
+ -- go ahead and call auto levels (which will be applied to the first layer by default)
+ tell doc
+ auto levels
+ end tell
+
+
+ -- And from here, you can close your document with a save, or without if you are just playing around.
+ -- tell doc to close with saving
+ -- tell doc to close without saving
+
+end tell

0 comments on commit d57b997

Please sign in to comment.
Something went wrong with that request. Please try again.