![]() ![]() Create and Save New 'rtf' File with TextEdit ![]() The print command is part of the 'Standard Suite' of the Finder's Dictionary, and so, in my next article, We will look at the remaining commands that make up the Standard Suite (there are 3). Replace 'Deskjet D2400 series' with the name of your printer and replace '(alias "Mac HD:Users:administrator:Documents:My Document.cwk")' with the path to the document that you wish to print (Don't forget to precede the path name by 'alias' - this is important). This second script, so that you aren't required to specify the application file targeted by the print command: tell application "Printer Setup Utility" set current printer to printer "Deskjet D2400 series" (alias "Mac HD:Users:administrator:Documents:My Document.cwk") end tell If you want to use different printers in certain cases, replace 'without print dialog' with 'print dialog' ![]() If you want to specify the printer, you could follow the last parameter in the list with a comma and 'target printer:' and the actual name of the desired printer enclosed in quotes. Try set dialogResult to (display dialog "Enter name of application to quit:" default answer "" with icon caution buttons ' above should be fairly obvious. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |