• 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
Re: Printing pdf via applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing pdf via applescript


  • Subject: Re: Printing pdf via applescript
  • From: nino <email@hidden>
  • Date: Mon, 03 Mar 2003 13:10:17 +0100

Martin wrote:
>
> I don't know. If anyone could provide me some further information on how
> this might be accomplished, if possible, with a reference to some syntax
> example I'd be grateful. I'm comfortable with AS basics but I've never
> used Folder Actions or sent 'apple events' to nonscriptable apps.
Under os 9 you can tell the finder to print your files, since they are pdfs
it will launch Acrobat reader to do the job on the currently selected
printer.

Of course the print command will prompt the print window and you need to
press return to do the job, but you can overcome this using Sandi's
Addition.

So the syntax can be very simple

tell application "Finder"
print alias "your:complete:filename"
delay 1
TypeText return
end tell

If you want to do this as a folder action then the shorter way is to look in
your system for a script in the Folder Action Script called "add - duplicate
to folders" strip out some parts and activate the action at end to keep the
folder opened so that folder action can work.

nino
_______________________________________________
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: [Ann] A little web site for scripting Adobe InDesign
  • Next by Date: Re: Cocoa Loco
  • Previous by thread: [Ann] A little web site for scripting Adobe InDesign
  • Next by thread: Re: Handler issue
  • Index(es):
    • Date
    • Thread