Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Droplet? | 20 comments | Create New Account
Click here to return to the 'Droplet?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Droplet?
Authored by: sinjin on Nov 04, '04 10:18:26AM
Oh, I do find this useful! I've been trying to put together a similar script (more below). Is there a reason why you chose to use a folder action for this instead of making it a droplet application? Just curious. I think someone could change the "on adding ... end adding" wrapper to "on open ... end open" if they preferred droplets and everything should work just the same.

What I'd like is something that helps me to duplex print piles of pdfs on my non-duplexing printer. I've created "Evens" and "Odds" settings for my printer, but it's tedious to babysit, say, 20 print jobs.

The script I've put together so far (non-functional) shares a lot with yours and relies on GUI scripting of Preview (because it and Acrobat Reader are non-scriptable). The theory is that I should be able to drop all the pdfs I want onto the droplet, all the evens get printed out and then I return to whole pile to the paper tray and hit a button to continue printing the odds.

Insight or alternatives would be greatly appreciated!

[ Reply to This | # ]

Droplet?
Authored by: LegoEvan on Nov 04, '04 11:04:57AM

You should definitely have the droplet print a blank page between each document, because there are situations where you'll print the last odd page of a document on the back of the first even page of the next one. In fact, you may want to print odds first (you can never have more evens than odds)

Just a thought



[ Reply to This | # ]
Odds or Evens?
Authored by: sinjin on Nov 04, '04 01:08:39PM
Good point. I've been going with evens in reverse first then odds. I'll need to print a spacer page for each odd-numbered document either way, though, won't I?

In looking at kirkmc's post below I see that I may be wasting my time trying to decipher the GUI hierarchy of Preview. If I can script lp to do odds/evens and reverse order it would be a lot more useful (could do a wider range of file types) and be a lot faster (the GUI script required a lot of time wasting kludges).

[ Reply to This | # ]

Droplet?
Authored by: thavron on Dec 12, '04 08:35:32PM
for even/odd, use:
lp -P 1,3,5,7,9,11 filename


[ Reply to This | # ]