tell document 1 to add image from ("/path/to/file.jpeg") at index 0
tell application "Acorn" tell document 1 replace text "$foo$" with "This Is The New String" end tell end tellJavaScript & Cocoascript:
doc.replaceOccurrencesOfString_withString("$foo$", "This Is The New String");
/Applications/Acorn.app/Contents/MacOS/Acorn -coscript /path/to/cocoascript.coscriptIt might also be convenient to set an alias to Acorn like so (in bash):
alias acorn=/Applications/Acorn.app/Contents/MacOS/AcornThen you could get really silly and do things like this:
acorn -coscript "doc = Acorn.open('/Library/Desktop Pictures/Elephant.jpg');\ var image = doc.currentLayer().CIImage();\ var filter = CIFilter.filterWithName('CIGaussianBlur');\ filter.setValue_forKey(image, 'inputImage'); filter.setValue_forKey(20, 'inputRadius'); doc.currentLayer().applyCIImageFromFilter(filter.outputImage());"And finally, if you end your arguments with -cosquit, Acorn will quit after running the commands.
The Shape Processor.
Acorn has a really great new feature called "Shape Processing". Have you ever wanted to generate a bunch of new shapes, and then arrange them all in a circle and adjust that radius right on the canvas? What about taking all your shapes and re-ordering them from smallest to largest? What if you wanted to take all your shapes and randomly assign each one a new color, and then scatter them around the canvas in a billion different locations? What about pushing all the shapes on your layer out of the way of a giant circle?
Well, now you can.
Shape Processors are filters for shape layers, which will move and tweak and generate and adjust shapes for you. And best of all, they are non-destructive and stackable (just like Acorn's filters). So you can add a bunch, tweak, save, close, and come back later if you change your mind.
Things that go snap.
This is a lot more snapping going on now. Snap to Grid, guides, shapes in layers, other layers, selections, canvas bounds, etc. It was a complete rewrite, there are now global preferences available for fine tuning how you'd like it to work, and we even made those changeable per document.
Completely rewritten bitmap selection stuff.
It's super accurate and works wonders with retina displays.
Non destructive Levels and Curves.
Levels and Curves joins all the other non destructive filters- this is pretty awesome. You can use Levels and Curves on shape layers, even combine in the same filters list, tweaking both at the same time, and add a Curves filter multiple times to the same image. I have no idea why you'd do this, but it sounds fun.
PDF Import.
When you open up a PDF, you can now choose the resolution, page, and background color of the PDF you are opening.
Crop tool improvements.
Pressing 'x' will now swap the aspect ratio of the current crop frame (if you have one that is, otherwise it'll swap the current back and foreground colors).
Pressing 'h' will toggle hiding the areas outside of your crop frame.
You can now rotate your image while making a crop.
Hundreds of minor bug fixes.
Yes, we are really going to list this in the "big new things" section.
We fixed hundreds of minor bugs. Bugs that built up over the years that very few people ever encountered, like "the shortcut key for zooming in doesn't work when the keyboard layout is set to Dvorak - Qwerty ⌘". So we fixed pretty much all of those. It took months and months of work, it was super boring and mind numbing and it was really hard to justify, and it made Acorn 5 super late. But we did it anyway, because something in us felt that software quality has been going downhill in general, and we sure as heck weren't going to let that happen to Acorn. So we took a long break from adding features and just fixed stuff.
And if you reported one of these bugs that was fixed in Acorn 5 and we haven't already sent you a license- let us know and we'll make you one. (See, another good reason to report any bugs you find- free stuff!).
More shape layer and bezier stuff.
New menu items - "Shape ▸ Bezier Stuff ▸ Align Anchors to Pixels" and "Align Anchors to Half Pixels" (the latter command shows up when you hold down the option key). This will align all the anchor points in your shape to the pixel grid (or half of it). This helps with making crisp lines for you bezier nuts out there.
You can now change the inner radius of star shapes. THIS IS AWESOME. It's actually quite flexible, and you can make some really neat star shapes (and did you know- you can change the number of points on your star using the View ▸ Quick Config popover?).
New option to reset bezier control points under the Shape ▸ Bezier Stuff menu
If you double click on an open bezier shape, it will signal to the shape that you would like to continue extending it. There's also the option to do this under the Shape ▸ Bezier Stuff menu item.
You can temporarily toggle the "snap to pixels" setting when moving a bezier anchor by holding down the control key while moving it with the mouse.
You can now invert the selection on shape layers.
The Shape Quick Config popover will now work when you don't have any shapes selected (and the settings you change will reflect on the next shape you make).
The contextual menu for the layers list has a new "Rasterize Shape Layer" menu for use on shape layers.
You can now close a path when creating it by pressing the enter or return keys. Pressing the escape key will finish editing it as well, but keep it open.
You can now move multiple selected anchors in a bezier path with the arrow keys or mouse.
If you have the option "auto select layers" turned off, a single click and drag in a shape layer will now move all the graphics without them needing to be selected first.
If you have a single text box selected and you press the enter key, Acorn will start editing it.
Holding the command key over a control point for resizing shapes will allow you to rotate it instead. I'm thinking of killing off the secret rotate handles outside shapes as well. Does anyone care?
Added Control-C as a way to select a color. This is awesome if you want to pick up on another color, but you're currently editing text and the 'i' key doesn't cut it.
Changed the modifier to move selected shapes by a half pixel to shift-option (from command-option).
New shortcuts to toggle the fill / stroke on selected shapes. Shift-F for fill, Shift-B for stroke.
New blend modes.
Acorn now has a "Pin Light" blend mode, as well as a "Mask" blend mode. The Mask one is pretty awesome- it works just like a layer mask, white lets pixels through, black erases.
Support for Photoshop brushes!
There's approximately 10 billion PS brushes available for download on the internet, and you can drag and drop one onto Acorn to import and make new brushes.
Speaking of brushes…
The Brush tool has now been renamed to the Paint tool. Because a bunch of other tools now use brushes, and it hopefully reduces confusion.
About those other changes I just mentioned. The clone, paint, smudge, dodge, burn, and other tools that had crappy brushes now each have their own unique brush that you can configure via the brush designer. So now you can have scatter for the clone tool. Or adjust flow and softness for the burn tool. Or turn pressure sensitivity on and off for the eraser. Etc.
Image metadata editing (aka, EXIF and IPTC, sitting in a tree).
Image metadata is now viewable and editable. Use the File ▸ File Info… menu item to bring up the editor. While not everything is editable, lots of good things are. And this is new- so if there's something you'd like to see here, let us know!
New options in the Filter Palette having to do with selections:.
"Blend with canvas selection", which is the old standard behavior when applying filters to the selection. Acorn will apply your filter(s) to the currently selected area in your bitmap, and then draw the results of that filter over your layer.
"Copy over canvas selection". This option will apply your filters to the current selection, and then replace the pixels in your selected area with the results of the filter. So in this case, if the filter returns transparent pixels, your layer will become transparent in those areas.
"Ignore canvas selection". This option will ignore the canvas selection, and work copy the result on top of your whole layer.
Miscellaneous new stuff.
var layer = [[[doc baseGroup] layers] objectAtIndex:0]; layer.drawWithHandler(function() { var path = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(0, 0, 100, 100)]; [[NSColor blackColor] set]; [path fill]; // return the area to commit for undo operations return NSMakeRect(0, 0, 100, 100); });