• 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: Requesting advice with TextEdit & Acrobat printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting advice with TextEdit & Acrobat printing


  • Subject: Re: Requesting advice with TextEdit & Acrobat printing
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 19 Aug 2015 11:29:15 +0200


Le 19/08/2015 à 04:52, Brian Christmas <email@hidden> a écrit :

G’day scripters

Problem…

I’m trying to direct print with textEdit, and Acrobat Pro .

The handlers I’m using seem to work fine on my iMac, but not on my Clients 2012 Mac Pro, both running Yosemite.

If they set the paper size of the TextEdit Print dialog to A4 (which it’s supposed to be), then Acrobat prints on A4 instead of A3 (TextEdit first prints what we call a ‘cover sheet’ on A4 first, with barcode and email details).

TextEdit’s Print dialog has a target printer set to the name of the Small Page Printer, and Acrobat uses (supposedly), the Large Page Printer. These names are set in a set-up window which allows direct selection from the ‘Printer & Scanner’ preferences list.

Is anyone able to tell me what I might be doing wrong in the code please? For instance, should I be using the CUPS printer names instead of the spaces-included-instead-of-underscores Printer names?

Regards

Santa

on printTextEdit()
try
set TempAttachmentName to my ResetAttachmentName()
tell application "TextEdit"
try
activate
open file (my theItem) as alias
print document 1 with properties {target printer:TheCoverPagePrinter} without print dialog —< ‘Small Page Printer'
end try
end tell
on error errmsg
set my didItPrint to false
tell application "System Events" to display dialog "printTextEdit " & return & return & errmsg giving up after 40
end try
end printTextEdit

Is it really the handler which you try to use ?
I'm puzzled by the fact that you define the variable TempAttachmentName which you don't use.


Yvan KOENIG (VALLAURIS, France) mercredi 19 août 2015 11:29:11




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Requesting advice with TextEdit & Acrobat printing
      • From: Brian Christmas <email@hidden>
References: 
 >Requesting advice with TextEdit & Acrobat printing (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: How do we Convert PICT to JPEG
  • Next by Date: Re: How do we Convert PICT to JPEG
  • Previous by thread: Requesting advice with TextEdit & Acrobat printing
  • Next by thread: Re: Requesting advice with TextEdit & Acrobat printing
  • Index(es):
    • Date
    • Thread