• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scripting print dialog in Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting print dialog in Preview


  • Subject: Scripting print dialog in Preview
  • From: Jason Meinzer <email@hidden>
  • Date: Thu, 10 Apr 2003 01:47:00 -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.

  • Prev by Date: UI Scripting menu items
  • Next by Date: AppleWorks 6 'unexpected error' #-24668 with AppleScript
  • Previous by thread: Folder Actions
  • Next by thread: BBEdit Repeating Finds
  • Index(es):
    • Date
    • Thread