1772 Views 7 Replies Latest reply: Mar 22, 2011 7:33 AM by cathy fasano
The direct answer to your question is that there's good news and bad news. First, the bad news: quartzfilter is indeed gone, and it's not coming back. Now the good news: you can create an Automator workflow as described above, and then run it from the shell using the automator(1) command:
I didn't know about this command until today.
automator -- Runs Automator workflow.
automator [-v] [-i input] [-D name=value ...] workflow
automator runs the specified workflow. To create or edit a workflow, use
the Automator application.
The following options are available:
Set variable name to value for this run of workflow.
Set input as the input to workflow If input is - then the con-
tents of standard input is used. The newline character ( ) is
the delimiter for multiple strings.
-v Run in verbose mode.
The reason I need the command-line service is that I've got about 30 lines of perl which figure out what the reduced file should be named given the name of the press-quality file. This replaced 400 lines of almost-incomprehensible applescript that does the reduce-and-rename, that takes about 45 minutes to run versus 4 minutes for the perl script. From a programmer point of view, it's mighty convenient to just create and execute the reduce command at the end of the loop in the perl script.
I guess I'll just have to keep a 10.4 machine around. Also, the reduction algorithm in 10.4 has proven itself rock-solid reliable over years of doing this, whereas the 10.6 pdf reduce file size fails spectacularly (as in the "reduced" file is 10-20 times the size of the original) about 5-10% of the time. I'll wait until all my PPC machines are on their last legs and then figure out what to do from there.