Scripting print dialog in Preview.app
Scripting print dialog in Preview.app
- Subject: Scripting print dialog in Preview.app
- From: Jason Meinzer <email@hidden>
- Date: Thu, 10 Apr 2003 11:48:03 -0700
I'm new to this list, but I have spent the last several hours looking
through the archives for answers...no luck.
I am creating a droplet that will take a PDF file and use the print
dialog in Preview to save each page into a separate PDF file. I am
using the UI scripting beta since Preview doesn't appear to be
scriptable, but I cannot seem to set the options I want in the print
dialog. I'm taking hints from
http://www.apple.com/applescript/GUI/,
which has gotten me this far, but once the print dialog comes up, the
only thing I can do successfully is 'keystroke "5"' or similar, which
sets the number of copies since that is the default field (which is of
course irrelevant to what I want to do). I can't set the values of the
text fields (UI element inspector tells me they're all named "1"
anyway--how is this possible?). I thought about using 'keystroke tab
group' to move to the text fields, but it seems that after one such
statement, they have no effect (i.e. I can't tab past the "Collated"
check box).
Much thanks in advance to anyone who can help me. I've been beating my
head against this problem for months now with perl + ghostscript, perl
PDF modules, php PDF libraries, you name it.
Jason
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.