On May 05, 2012, at 07:48, Robert Poland wrote:
Has anyone gotten this to work? I get the error "Can't make some data into the expected type".
set f to alias "Thor:Users:chris:Downloads:001.jpg"
tell application "Finder" to set newf to ("" & (f's parent) & "f_Resized.jpg")
set newf to POSIX path of newf
set factor to 0.5
set {x, y} to (image info for f)'s {pixel width, pixel height}
set w to make new graphic window with properties {pagewidth:x * factor, pageheight:y * factor}
BeginFigure(w)
DrawImage(f, {0, 0, x * factor, y * factor}, "")
EndFigure()
save w in newf
delete w