Re: Gui script for Preview
Re: Gui script for Preview
- Subject: Re: Gui script for Preview
- From: Emmanuel LEVY <email@hidden>
- Date: Sat, 05 May 2012 02:03:32 +0200
My pleasure...
Assume you've got the original file f, and you want to save a reduced copy into 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
Be sure to provide the correct file extension to newf, that's how you select the image format.
Emmanuel
On May 5, 2012, at 1:42 AM, Christopher Stone wrote:
> On May 04, 2012, at 11:46, Emmanuel LEVY wrote:
>> We can provide a short script for Smile...
>
> ______________________________________________________________________
>
> Hey Emmanuel,
>
> Please do. :)
>
> --
> Take Care,
> Chris
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden