I am trying to script the process of importing an image, rotating it to a different angle, reducing its size, and then setting its location. The script worked perfectly until I added the line to change its rotation angle. Here's the script as I have it so far:
Code: Select all
on mouseUp
answer file "Select a JPEG file:"
put it into filePath
import paint from file filePath
set itemDelimiter to "/"
put last item of filePath into tFileName
set itemDelimiter to ""
put the loc of graphic "placeHolder" into tLoc
set the angle of image tFileName to 270
set the width of image tFileName to 166
set the height of image tFileName to 203
set the loc of image tFileName to tLoc
end mouseUp
What am I missing?
Thank you,
Jon