I am trying to make an applescript that will scale images from 1024x1024 to 512,256,128,64,57 etc, so I can quickly create icons for the different platforms.
The script works now, apart from the fact that I have to select the graphic elements by hand.
This is the relevant part:
set selectedPathList to (every path in the selection)
copy selectedPathList
set scaleDocument to make new document
set page size to {1024.0, 1024.0}
set drawing size to {1, 1}
paste selectedPathList
set selectedPathList2 to (every path in the selection)
-- size becomes 512
scale selectedPathList2 by {0.5, 0.5} about {0, 0}
set page size to {512.0, 512.0}
set drawing size to {1, 1}
save scaleDocument in file (thefolderPath & ":icon512png") as "public.png" quality 1024
Any suggestions how I can select all the graphical elements? Is there any kind of operation like
for each path in the document
or something equivalent?
Intaglio mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options