
Pixelmator pro automation free#
Of course, if you'd like to have a go at modifying the script yourself, feel free to do so, I'd love to see it!Īs an exercise in curiosity I rewrote the 3D Text Effect script to perform its manipulations in a temporary document. So, overall, my feeling is it would about the same, complexity-wise, though possibly with less potential for bugs. I also like your suggestion of creating another document, though I think there might be potential for it to be just as, if not more complex - you'd need to create a new document with the size of the current document, then cut the layer, paste it into the new document, then paste it back in and close the temp document without saving it. But in most other cases, again, this extra step isn't necessary. I seem to recall that the merge command cannot take lists in the form of layers 3 thru 12 due to some AppleScript limitations, so I had to use this method. Yeah, usually there's no need to remember the visibility of layers even when writing scripts that operate on one layer in a document, but because this particular script uses the merge visible command, it does become necessary. Yes, you would have to create a new document and then close it without saving, but this is only a few statements compared to tracking visible layers, hiding them, and then making them visible again. Instead of all the work tracking then hiding other visible layers and then restoring their visibility back, copy the current layer into a temporary new document and then bring the results back in. Close the current image without savingįeel free to try out those scripts and let me know how it goes!īy Senior Moment Let me suggest a less complicated way to write scripts when they operate on only one layer and all other layers need to be ignored, such as your example script for creating a 3D text effect.
Pixelmator pro automation pro#
Name of currentImage & "-edited" & ".pxd") as Pixelmator Pro "Please select where you'd like export the images:"Įxport currentImage to file ((exportLocation as text) & ¬

Set exportLocation to choose folder with prompt ¬ Open a prompt to choose the location where the files should be exported " images have been successfully edited." with title "Auto WB and Auto Lightness"Īnd here's a way to script the same thing but export your changes to new documents rather than save them to the ones that were opened: Export the images to the location chosen previously as Pixelmator Pro filesĭisplay notification (number of originalImages as text) & ¬ Apply the auto white balance adjustments Set currentImage to open item a of originalImages Repeat with a from 1 to number of originalImages Start a repeat loop that loops over each image "Please select the images to process:" with multiple selections allowed Set originalImages to choose file with prompt ¬ and save references to all those images in the originalImages variable Open a prompt that lets you pick multiple Pixelmator Pro files to process

Max, this is a great (perhaps the best) place to ask questions like this! Here's an example script that should do what you're looking for:
Pixelmator pro automation how to#
If there was a sample of how to use these commands, that could serve as a template for using other commands.

I know these commands are in the Pixelmator Pro AppleScript dictionary, but I can't figure out the correct way to script this. I would like to create a script that takes a folder of Pixelmator Pro files and applies the White Balance and Lightness corrections. I'm new to AppleScript and I think it would be helpful if you had a few photo editing sample scripts. By Max McCarty 18:25:08 I sent this comment to the support team, but maybe I should post it here instead.
