Monday, December 10, 2018

#1 2006-01-06 12:21:11 pm

ActionB
Member
From:: Baltimore, US
Registered: 2005-01-21
Posts: 23

Run AppleScript in Automator

Can anyone tell me, or point in the right direction for including the following in a Run Applescript action:

Applescript:


tell application "Image Events"
set theImage to open "localhost:projects:JPEGimages:"
save theImage as PDF in "localhost:projects:PDFimages:"
close theImage
end tell

Essentially, getting the specified finder items and saving as a different file in another location.
Much appreciated


Filed under: image

Offline

 

#2 2006-01-08 12:40:24 am

Craig Smith
Administrator
From:: Tacoma, WA
Registered: 2005-05-16
Posts: 1027
Website

Re: Run AppleScript in Automator

Action:

Image Events can't convert to PDF, nor can it convert an entire folder at once; it needs to take a single image at a time to do the conversion. 

If you are serious about converting to PDF, read this thread.  The only problem is that I am unsure how to build this to work with Automator.


Craig Smith

Offline

 

#3 2006-01-08 11:58:49 am

ActionB
Member
From:: Baltimore, US
Registered: 2005-01-21
Posts: 23

Re: Run AppleScript in Automator

Thanks for taking a look CAS.
Could you use Apple's Convert to PDF script and attach that as a folder action?
It's too bad Image Events can't run this.  Preview would do just as well for me, if GUI scripted.  I can't figure out how to activate the Save As > PDF navigation though.  The problem with the Convert to PDF for me is that it runs through the Printer which sets the image on a white page of a preset size.

Offline

 

#4 2006-01-09 09:47:22 am

ActionB
Member
From:: Baltimore, US
Registered: 2005-01-21
Posts: 23

Re: Run AppleScript in Automator

Jacques - That's perfect.  Way to go.  Much Thanks.
big_smile

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)