On the file opening, you’ve found some pretty odd behavior on Photoshop’s part. I’ve had scripts doing it that way running on about 30 macs on about every version of Photoshop since CS6, so it’s not just my machine, this usually works. So with the way I did it, setting the numbers to pixels, my Photoshop unit settings can be set to inches, centimeters, pixels, points, or whatever, and the script always creates the correct size document without having to change unit settings. When you don’t keep track of your units as raw numbers, but as Photoshop unit types, then Photoshop converts on the fly to keep things correct. This is generally the best way to handle units in scripts because it’s faster than changing unit settings, you don’t have to keep track of what your unit settings are, and leaving unit settings changed can upset users. My script runs fine here in CS6 and CC2018. Set myFile to "Data:docsamples:testfiles:TiffSave.tif" tell application "Adobe Photoshop CC 2018" I downloaded the Photoshop scripting manual, but it didn’t help me as of now, cause i’m stuck with the very first line of code. Now want to do some scripting in photoshop, but i can’t really find anything good to go with. So i got the hang of applescripting in keynote, mainly due to all the great post around the internet explaining it in detail.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |