Chuck,

Been a long, long time since I write any AppleScript and I don't know what the 
dictionary for Preview supports but did you try passing  "properties {...}" to 
" without print dialog" - logically it doesn't make sense, but it might crazily 
work?!

Another (more hacky) option could be try and post system event keystrokes to 
close the print dialog after "with print dialog"?

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
-- 

-----Original Message-----
From: 4D_Tech <[email protected]> on behalf of 4D Tech Mailing List 
<[email protected]>
Reply-To: 4D Tech Mailing List <[email protected]>
Date: Wednesday, 3 July 2019 at 18:53
To: 4D Tech Mailing List <[email protected]>
Cc: Chuck Miller <[email protected]>
Subject: [off]Apple script issue

    Hi All
    
    I have the following apple script created and run via launch external 
process
    tell application "Preview"
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224747_04_12.PDF" with print dialog
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224841_04_23.PDF" with print dialog
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224840_04_23.PDF" with print dialog
    end tell
    
    When I print using this everything prints as it should
    
    When I use the following script
    
    tell application "Preview"
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224747_04_12.PDF" without print dialog
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224841_04_23.PDF" without print dialog
        print file "SnapServer:Test_Invoices:Checon_Invoices:2019:04 - 
April:224840_04_23.PDF" without print dialog
    end tell
    
    
    
    The top and bottom of the PDF is not printed
    Doers anyone know what command to use to tell Preview to print at 100% to 
why the difference
    
    Thanks and regards
    
    Chuck
    
------------------------------------------------------------------------------------------------
     Chuck Miller Voice: (617) 739-0306
     Informed Solutions, Inc. Fax: (617) 232-1064       
     mailto:cjmiller<AT SIGN>informed-solutions.com 
     Brookline, MA 02446 USA Registered 4D Developer                
           Providers of 4D and Sybase connectivity
              http://www.informed-solutions.com  
    
------------------------------------------------------------------------------------------------
    This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 
    
    **********************************************************************
    4D Internet Users Group (4D iNUG)
    Archive:  http://lists.4d.com/archives.html
    Options: https://lists.4d.com/mailman/options/4d_tech
    Unsub:  mailto:[email protected]
    **********************************************************************


**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to