AppleScript code to print a single sheet of numbers

Is it possible to print a sheet of numbers with AppleScript (ideally with no dialog)? I am wanting to loop through a set of sheets in a specific order and print them so they will print in this order. Thank you!

I don't have a printer here to test entirely, but this should do what you want.  The basic approach is to have the AppleScript to say number to go to a journal (from the active sheet of adjustment) and print it.

The print order follows the order of the names of journal entry on first line of the script.

SG

sheetNames value to {"Sheet1", "Worksheet 3", "Leaf 2"}

Repeat with an s in the sheetNames

Try

printSheet (s)

on error

display the dialog box "Check the journal names" buttons "Cancel".

end try

end Repeat

to printSheet (shtName)

say application "Numbers".

say front document

calculation sheet current defined in sheet shtName

print

end say

end say

end printSheet

Tags: iWork

Similar Questions

  • PCL5 sample code to print a single text in RGB color


    For some unknown reason (yet), this file does not print as expected on my LaserJet Pro MFP color 400 M475dnlocal: only lines printed (all in black!) are those whose odd color index.

    Update: I still don't know why the original file (creating a palette of 8 colors) does not work with my printer; It seems OK if I watch with a PCL Viewer commercial DBMS.

    All I can suggest is what explains the symptoms is that the sequence of CID (for some unknown reason) regarded as valid by the printer and is therefore ignored, so the printer returns to the (default) black and white palette, where even the indices of color whitecard and clues odd Blackcard.

    The joint amended file (Colour_CID_02.prn, also disguised with extension extra .txt ) fact print OK for this printer.

    The only difference between this file and the previous is that, within the parameters of Configuration of the Image data , the value index of Bits by is set to 8 (indicating a pallet size of 256), whereas in the original file, the value is 3 (indicating a palette size 8).

    An analysis of the new file is also attached.

  • I have Mozilla Ffox on a Dell Vostro Desktop computer, connected to a HP-Officejet 6500. The printer prints internal drive, but don't print Web sites. The printer ejects only a single sheet of blank paper.

    The version of Firefox 4.0.1 and Windows 7 operating system are
    correctly identified below.
    Still, my printer prints not websites, including Yahoo mail. The printer seems to respond to Web sites, but only ejects a single sheet of blank paper when printing is initialized.

    Just to be sure, everything is covered:

    1. Reset you all the preferences of print.printer , as indicated in brackets in step 2, who were in "BOLD", not only print.print_printer preference?
    2. You you exit Firefox (Firefox button > exit OR file > exit, if you use the Menu bar), and then wait a few seconds and restart Firefox before testing the change according to step 4?
    3. I have a HP 6200 series. Don't forget, if yours is a multifunction printer that you have NOT enabled the fax (i.e., "HP Officejet 6200 series" NOT 'HP Officejet 6200 series fax') in the name field of the printer on the screenshot (CTRL + P).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • How to print different pages on a single sheet?

    Hello world!

    I am a student and just got my first MacBook.

    Because I print a lot of scripts for uni, I used to print 4 pages on a sheet of paper to secure money.

    How can I do this on my Mac? I haven't found how to print multiple copies of the same page on a single sheet.

    Thank you very much!

    Lucylike

    What app do you use?

  • Print two photos on a single sheet of photo paper

    On a C5180 all-in-One printer how to print two 5 x 7 photos (same photo) on a single sheet of 8 1/2 x 11 photo paper?  I am running Windows 7 on my computer.  It seems a pity to print a single 5 x 7 on page & lose the use of the rest of the document.

    Bill

    Do you remember the name of the program by any chance? I think you can do this with Windows Picture Viewer, and it must be installed with the operating system. What program opens your photos now?

  • How can I print multiple photos on a single sheet using windows 7

    I want to print up to 4 photo on a single sheet, but I do not see how to do this.

    Can you please help me, thanks

    You see the list of "Related Discussions" under the button 'More help'?

    How to print multiple images on a single sheet of photo paper in Windows 7?
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/how-to-print-multiple-pictures-on-a-single-sheet/d39495e7-4874-4c5b-B949-8888e59c7e81

  • print two photos on a single sheet of paper of photo officejet pro more than 8600

    I would like to print 2 photos on a single sheet of photo paper. These should fit into small frames and requires 900 x 650-two fits 6 x 4. When I go in my photo editor, it shows the picture (I tried with a) up on the preview, but the printer says that this is not the correct size of paper. Thank you.

    Thank you for taking the trouble to answer. After I posted the request I tried again and this time she did not accept the photo paper. I don't know what happened. One of my problems was how to get 2 pictures on the page, because after that I had chosen 2 to the sheet he doesn't seem to be anyway to introduce the other. Now, I discovered that all I have to do is select the two images in windows Explorer, and although it does not show a preview it does not produce the required result. Thank you again for your willingness to help.

  • Printing photos on a single sheet of varying

    I had the image on a print sheet.

    Is this possible in what to print at the same time various prints of sizes on a single sheet A4 to allow a minimum loss of photo paper?

    Your comments will be appreciated.

    Hummingbirdman

    Eureka, Mark. Success in the end.

    I managed to get exactly the effect that I need and I thank you for your patience.

    Best regards, John

  • invalid claim code, 6700 printer

    premium to the 6700 printer, have the saved printer. I feel out with request code. I go to HP Connect to DIVES, to add a device, I get an error message saying my claim code is not valid. Printed on another sheet, same claim code. The claim code is not 24 hours. Help

    Your best bet is to disable the web services and then turn them back on.  It will give you a new claim code.

  • E: 7640 envy how single sheet feed?

    I have a sheet of paper 8.5 x 14

    How can I get unique food that in my Envy 7640 printer sheet?

    Thank you.

    Brian S

    Hello @aGuyWhoTypes,

    Welcome to the forums of HP.

    I understand that you are trying to load a single sheet of paper of legal size.

    I would like to help.

    Load letter, A4 or legal size paper

    Follow these steps to load paper in the input tray.

    1. Grasp the handle on the tray, and then pull the tray toward you to open it. Close tray appears on the Control Panel printer displays message "paper tray is open. Close the drawer to continue. Touch to display the loading paper instructions. '

      Figure 1: Remove the paper tray

  • Different entry without pulling together tray feeder feed a single sheet of paper?

    With windows xp, there is a way to feed a single sheet of different paper in the entry on 8600 feeder, without having to pull the entire Board each time?

    Hello

    Without this function is not supported on this device, some LaserJet haven for example the priority feed slot, but this printer does not work.

  • same page twice on a single sheet

    I would like to print the same page twice on a single sheet. Is there a simple solution with Acrobat Reader?

    Adobe Reader X Version 10.1.5 and Windows 7

    Thank you for your help

  • M252dw - how to print on a sheet of 4 x 6?

    How to print on a sheet of 4 x 6. I put a card in the main tray, but it printed the first line, low and complained of unexpected size.

    When I feed a sheet in the sheet, charger it just jams.

    There must be a setting in the menu that I can't find, or something.

    Thank you

    Hi @JonJacobs,

    Welcome to the Forums of HP Support! I see that you have problems printing on 4 x 6 index cards. I would like to help you today. If this helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say thanks for my effort to help, click on the 'Thumbs Up' to give me a Kudos.

    Make sure the printer driver is correctly selected for the media size, the type of paper and the plateau. You can find more information of the printer on page 40, manuals, of Laserjet M252dw. You will also find documentation on loading trays.

    When you print from the main tray, remove the paper and simply load the paper 4 x 6.

    What operating system do you use?

    Mac OS X: how to find which Mac OS X Version is on my computer?

    How to find the Windows Edition and the Version on your computer.

    What applications do you use?

    Please let me know the results and if there is anything else I can help you. Thank you.

  • my printer takes half an hour to print a single page

    My hp5510 suddenly began to take half an hour to print a single Web page.  Yet, sometimes it prints quickly.  The colors are also washed in or very weak or very dark, even though I have installed two new ink cartridges.  It happened after an update of Windows, I think.  HPDR shows no problems with it.

    Hello hsmof5.

    Please, try to remove and reinstall the cartridges and perform the alignment of cartridges from the Toolbox.

    See you soon!

  • OfficeJet pro 8600 print a single vertical black line when using the charger

    OfficeJet pro 8600 print a single vertical black line when using the charger

    Hi @realestatejeann,

    I see that you have found one black vertical line when using the ADF. With a few steps, we should be able to solve this problem.

    Make sure that the printer is connected directly to a wall outlet. (do not use a hub or a surge protector) This ensures that the printer is full on and can help this situation.

    Here is a document for the cleaning of the glass Strip and the underside of the scanner cover.

    Vertical stripes, lines or streaks on Copies, faxes or scans.

    If you need help, let me know.

    Good day!
    Thank you.

Maybe you are looking for