AppleScript名:10.10でプリンタを選択して印刷 v2a |
— Created 2014-11-27 by Takaaki Naganoya — 2014 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AppKit" property aPrinter : "USB Modem" property targFaxNum : "03-XXXX-XXXX" set pArray to current application’s NSPrinter’s printerNames set pList to pArray as list –> {"KING JIM TEPRA PRO SR3700P", "NEC MultiWriter 5750C @ MBA13", "PDFwriter", "PM-T960-1"} set aPrinter to first item of (choose from list pList with prompt "出力先のプリンタを選択してください") tell application "Safari" tell front document set aPrintSetting to {copies:1, starting page:1, ending page:9999, target printer:aPrinter, fax number:targFaxNum} print with properties aPrintSetting without print dialog end tell end tell |
(Visited 39 times, 1 visits today)