Trying to Applescript Quartz Filter to reduce PDF file size
Trying to Applescript Quartz Filter to reduce PDF file size
- Subject: Trying to Applescript Quartz Filter to reduce PDF file size
- From: Ian Cook <email@hidden>
- Date: Mon, 01 May 2006 12:43:18 +0100
- Thread-topic: Trying to Applescript Quartz Filter to reduce PDF file size
I see that Automator has an action to apply a quartz filter to a PDF thus
being able to reduce the file size. Wonderful.
Does anyone know how this be Applescripted directly without using Automator?
It would solve so many of my problems.
I need something like...
Tell application "Quartz filter"
Reduce File Size of the_PDF
End tell
THE STORY SO FAR...
If you're interested, this is the embarrassing workaround that I am using at
the moment, it's giving sporadic results due to processes running out of
order.
I have a script producing PDFs out of FileMaker that's running fine and I
want to reduce the file size before they are made available for download.
I created a workflow that applies a quartz filter (reduce file size) to a
file and saved it as reduce.app in the applications folder. That works fine
too. Apart from that fact that it changes the permissions of the file to NO
ACCESS for Others. So I added a Run Applescript to the Automator workflow to
set permissions back to READ ONLY. It works fine most of the time but some
processes seem to run at the same time and sometimes the permissions script
runs before the reduce file size has finished.
So in Filemaker I have an applescript script step which says...
open the_PDF using application file "reduce.app" of folder "Applications" of
startup disk.
As the filemaker applescript runs the workflow as an open step, it does not
wait for it to finish before continuing so I cannot transfer the new file
size back to filemaker.
Any help very much appreciated.
Ian Cook
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden