Re: GIF to PDF with Applescript ONLY
Re: GIF to PDF with Applescript ONLY
- Subject: Re: GIF to PDF with Applescript ONLY
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 11 Apr 2013 16:42:13 +0200
Thanks for asking.
As usual with Smile, it comes hard core but compact.
-- first get the sizes of the original picture
set f to "/Users/emmanuel/Desktop/Screen Shot 2013-04-11 at 12.48.25 PM.png"
set {x, y} to (image info for f)'s {pixel width, pixel height}
set w to make new graphic window with properties {pagewidth:x, pageheight:y}
-- draw it into a graphic window with the right size
BeginFigure(w)
DrawImage(f, {0, 0, x, y}, "")
EndFigure()
-- now save it. Providing the extension is enough to specify the file type.
save w in "/Users/emmanuel/Desktop/Screen Shot 2013-01-30 at 3.53.20 PM.pdf"
delete w
Best,
Emmanuel
On Apr 11, 2013, at 4:31 PM, Alex Zavatone wrote:
>
> On Apr 11, 2013, at 10:23 AM, Emmanuel LEVY wrote:
>
>> Let alone Smile.
>
> How would one go about this, Emmanuel?
>
>> Emmanuel
>>
>> On Apr 11, 2013, at 2:12 PM, Chris Paveglio wrote:
>>
>>> Here's what the original poster said:
>>>> I looked everywhere on the internet for a solution.
>>> All I could find were
>>>> 101 ways to do it with Automator,
>>> or with paying Utitities, but nothing with
>>>> Applescript.
>>>
>>> Anybody got any ideas for a dead simple AppleScript ?
>>>
>>> So, my *interpretation* of his request was that he wanted something using
>>> Applescript AND/OR something FREE. It did not have to be actually limited to
>>> Applescript because he was already using Revolution and looking at other
>>> avenues.
>>> I could be wrong, but the OP hasn't replied recently.
>>> IMO, shell scripts, terminal commands, GUI scripting, and ASOC would all be
>>> valid tools to get to his goal. They are all available to him free.
>>>
>>> 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
>
_______________________________________________
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