Batch printing the grade book template with AppleScript.

I am using the grade book template with numbers. However, I might need to get some applescript help.
The default template has a Report page, and it includes one student. I can  change the students name to change the values. This works brilliantly. However I have 300 pupils that I need to generate this report for. I want to have one of those reports for each student automatically generated and printable so that I can give them to the students at the end of the term.
Obviously, I don't want to generate each report myself. Applescript seems like the solution, but I don't know how to use it.
Can anyone lend a hand?

I think AppleScript probably is the best way to go here, but you probably ought to learn something about using it because it is often difficult to write and test a script on one system when it has to work on a different one. Yvan does a pretty good job of that, but my AppleScript skills are not that advanced.
My difficulties with your problem include:
I don't know what changes you might have made to the stock template in Numbers
I am using Snow Leopard, not Lion
I believe UI scripting is needed to duplicate a sheet, and I don't own the tools to determine how to select a sheet (if that is possible).
So, working with the unmodified template on my system, this is a script that I think does what you need (but it would probably have to be edited to suit your situation):
To run this script, UI scripting must be enabled. Numbers must be running with the Grade Book document open and the sheet "Reports" selected.
tell application "Numbers"
  activate
          set theDoc to front document
          set sourceTable to table "Student Grades" of sheet "Student Data" of theDoc
          tell theDoc
                    repeat with i from 4 to ((row count of sourceTable) - 1)
                              set theName to value of cell i of column 1 of sourceTable
                              tell application "System Events"
                                        tell process "Numbers"
                                                  click menu item "Duplicate" of menu 1 of menu bar item "Edit" of menu bar 1
                                        end tell
                              end tell
                              set theName to value of cell i of column 1 of sourceTable
                              tell sheet (i - 2) of theDoc
                                        set its name to (theName & " Report")
                                        set value of cell 1 of row 3 of table "Student Lookup" to theName
                              end tell
                    end repeat
  delete last sheet
          end tell
end tell

Similar Messages

  • Modifying the 'Grade Book' template to have a Report for each student

    The grade book template looks like it could save me from buying Bento 2 and look prettier in the process. However, I might need to get some applescript help.
    The default template has a Report page, and it includes one student. The included comment says to change the students name to change the values.
    I want to have one of those reports for each student automatically generated and printable so that I can give them to the students at the end of the term.
    Obviously, I don't want to generate each report myself (320 students ... not a fun way to spend a day). Applescript seems like the solution, but I don't know how to use it.
    Can anyone lend a hand?

    Not seeing exactly what you want it's hard to be sure what solution may work - fortunately there are others here that know far more than me.
    I don't know how charts and graphs are moved to Pages, but if it cut and paste, I suspect it would be unlikely that you could do it with charts or graphs based on individual students. If it can be done with a mail merge, maybe it could.
    But I'm thinking a different approach may be possible if the only charts or graphs you use are to show the class info and mail merge the individual student data.
    Let me see if I can explain what I'm thinking of:
    You mail merge info like scores for each test and/or just the average of each grade category, plus the overall average and personal comments.
    As part of the pages document that is the same for every student, you could put the charts or graphs in for the class as a whole. For example, if you wanted the student to see the class average for each test to compare to their own score, you could have a graph for that CLASS info and then they could look at their mail merged info to see how they compared. It just wouldn't be part of the same graph.
    I think this would let you have the same info as in the template, but structured a bit differently.
    You may also be able to reproduce everything from individual tables into one big table - more than just normal summary info - and work from that. Basically it would be a table of just formulas pulling in from the other tables.
    This is something I'm looking at for some of my projects, but I haven't worked out the details yet.
    Good luck.

  • I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    Thanx for the prompt response, KT. I have indeed seen that thread, only just after I posted the question.
    I have spent hours on the phone with what I now know is a call center in Texas on this question.
    I think Apple could be a little more "hands on" with iBooks Author users, and it should also be pointed out that landscape photos will not display in portrait mode.
    In my case, I used gallery widgets to display vertical photos, since they look better in portrait mode.
    But instead of simply rotating, the page disappears and a TOC of interactive media appears. The gallery behaves as expected when tapped. This is not what I expected, but since the gallery works, I can live with it.
    Right now I have "tickets" telling me to "fix" this "problem or to disable portrait mode.
    I don't want to disable portrait mode.
    Will Apple accept the books if I tell them this is not an "error?"

  • Grade book template missing.,,.

    In the store the iPad has grade book template on numbers app so I bought iPad now I paid for iPad and numbers but have no grade book!   What's going on?and yes it wAs an iPad I was looking at and demo was of numbers grade book

    Just because you saw it in the Numbers demo on the iPad in a store doesn't mean that it is built in. Some of the apps that they show on the TV ads and and store demos are not Apple preinstalled apps.  If you have Googled this, you would see that menu users have asked the same question and the template does not appear to be built in. At least , that's what I found in my research.
    Apparently there is a template in the Mac '09 version of Numbers that you could sync to the iPad via file sharing or you can look at sites like this that offer free templates.
    http://iworktemplates.blogspot.com/

  • What is the best external hard drive for the MAC Book Pro with Retina?

    What is the best external hard drive for the MAC Book Pro with Retina?
    I was looking at WD MY PASSPORT FOR MAC and Toshiba. I want something that will work best with time capsule! Suggestions on the best external hard drive would be greatly appreciated!!!

    A Time Machine backup drive should be substantially larger than the system drive.  If you have a 128 or 256 GB SSD then a 1 TB drive will suffice.  If you have a 512 GB SSD then a 2 TB drive will suffice.  As leroydouglas indicated any brand other than WD will do.
    For 1 TB drives PlotinusVeritas gives some great suggestions here:
    https://discussions.apple.com/thread/5602141?tstart=0
    A 2 TB drive sold by Apple:
    http://store.apple.com/us/product/H9378ZM/A/lacie-2tb-usb-30-porsche-design-p923 3-desktop-hard-drive
    $130
    A 2 TB drive just as good for only $92.
    http://www.ebay.com/itm/Toshiba-Canvio-Basics-3-0-USB-2-TB-Portable-Hard-Drive-M odel-HDTB220XK3CA-/231162655273

  • How to print the grade of sal?.

    how to print grade based on sal. think my table is having ename,sal columns.
    how to print the grade?. where i have to write the code?. pls give some tips
    i want to print like
    grade      ename sal
    1 abc0     5000
    2     abc1     4000
    2     abc2     4000
    3     abc3     3500
    4     abc4     3000

    Hi,
    Definitely an interesting Q.
    Here is what you can do:
    1. Create a Placeholder column "last_sal" at the report level (outside any groups)
    2. Create another Placeholder column "grade" at the group level (inside the group where you have salary).
    3. Create a formula column inside the group. Write the following formula:
    function CF_1Formula return Number is
    begin
    if :last_sal is null then
         :last_sal := :salary;
         :grade := 1;
    end if;
    if :last_sal > :salary then
         :grade := :grade + 1;
         :last_sal := :salary;
    end if;
    return 1;
    end;
    Print grade in your report layout. This should give you the desired result.
    Navneet.

  • Can I install 32gigs of ram on the Mac book pro with retina display

    Can I install 32gigs of ram on the Mac book pro with retina display

    MacBook Pro with Retina display is not user upgradable.
    Apple says configurable to 16GB.
    http://www.apple.com/macbook-pro/specs/

  • Does the Mac Book Pro With Retna have a disk drive?

    Does The Mac Book pro With Retna have a disk drive?

    No.  The storage is all SSD.
    Ciao.
    If you are referring to an optical drive, that is also NOT included.  You would need to connect one externally.
    Message was edited by: OGELTHORPE

  • Why can't i print the e-book that i purchased?

    why can't i print the e-book that i purchased?

    The print permission might not be available for that book. In Library mode, right click on the book and select Item Info. Verify whether book had print permission.
    These permissions are set at the server level by the distributor.

  • Can I print the photo book with any fonts?

    I would like to print a photo book using iphoto. Is it possible to print this by using any fonts?

    Don't get up your hopes, Old Toad . I never tried to buy a photo book from the iPad.
    The documentation does not say much:
    http://support.apple.com/kb/HT5037
    It only mentions, that you can change the font size:
    Edit text on a page
    Tap Projects, and tap the photo book to open it.
    Double-tap the page containing the text you want to work with.
    Do the following:
    Align the text: Tap the text box, and choose an alignment style from the menu that appears directly above the text box.
    Choose the font size: Tap the text box, and tap the font size you want.
    Make changes to the text: Double-tap the text box, and type.
    No mention of the supported font. Probably the fonts will depend on the country of the Print Products Store you are using:
    To change countries, tap at the top-left corner of the screen, and select another country from the list.

  • How can I print the Album name along with the Contact Sheet created from the photos it contains?

    I have my photos organized into albums.  I would like to print a contact sheet for each album, but would like it to include the album name.  This seems like a very basic part of organizing, but it's not overly apparent how to do it.  I would also like to resize the caption font on the contact sheet, too.  Any suggestions?

    Thanks for your replies.
    When you say "book creation," are you referring to the Photo Book option?  Unless I can create a custom template, that seems somewhat limiting, as there are only a few templates to select from.
    I'm trying to come up with a method to manage headshots of staff, the printout of which would be distributed to hotel and security personnel while our group travels (the included Photo Book templates are not appropriate for a straight-up, columnar layout like this requires). My thought was to keep each department's headshots in its respective Album, which could then be quickly printed and distributed.  Staff for each department rotates in and out on a regular basis, and the Elements Organizer seemed like a good way to quickly add, caption and place into each Album the appropriate pictures.  Contact Sheet printing seemed to be a quick way to accomplish this, but I was hoping to get the Album name (i.e. department name) at the top of the printout.
    I printed the contact sheet to a PDF (I have Acrobat Pro XI), then inserted it into a Word doc, as you suggested.  While it does allow for headers, etc. it does add a couple of additional steps to the process, but more importantly, I'm finding that the image captions in the PDF are blurred, and not crisp enough to read easily (it may be better if I had font control in the PE Contact Sheet).
    So maybe I need more of a desktop publishing app (more than I was wanting to spend), but the Organizer gives me a good process for quickly managing my photos.
    Any other suggestions or comments would be greatly appreciated.

  • Adding Address2 line into the Address Book template

    Need to add Address2 for Suite numbers in the address book. How is this accomplished?

    You can use the return key in Line 1 to have a 2-line address. Doing this doesn't move you to a new field. Presumably you can add a third line in a similar way. This is often needed with UK addresses which are many lines long.
    This is of course not a change in the template, just in typing the entry.
    Message was edited by: Neville Mayfield

  • How can i print just one page of photo book without printing the entire book

    how can i print just one page of photo book without printing the entire book

    Jim,
    Take heart.  We can help.
    First turn on page view so you can see how the content of your sheet fits on the page(s).  A Numbers document contains sheets (listed on the left) which in turn contain tables, charts, text, and graphics.  Select the sheet you want to print on the left, then enable page view by selecting the menu item:
    "View > Show Print View":
    Now you should see your content and how it fits on one, or more, pages.  If thie content is too big for one page use the controls and the bottom left of the window to expose the sheet controls:
    Here a table is too big to fit on one page:
    slide the "Content Scale" slider so the content fits:

  • Okay ...I see that to print the address book you go to Address Book, File, Print address book. BUT there has to be a way to print it on one page instead of 13!

    In the Address Book Print Preview mode I changed the R margin to 6 so that I don't have to print the long lines dividing the addresses. I decreased the top & bottom margins to .2 I also changed it to 50% and unchecked headers & footers. Now is there a way that I can copy/paste this to a spreadsheet so that I can put the addresses in columns and not have to waste so many sheets of paper to print it? Is there a way to delete the spaces between rows, even deleting the line between addresses? Is there a way to save the actual list to my comptuer ...not in the csv or txt form ...just a list?

    https://getsatisfaction.com/mozilla_messaging/topics/how_to_print_thunderbird_address_book

  • Printing the Output of ALV with out page breaks

    Dear all,
    I had a problem while taking printout in FBL1N transaction . wheever i am taking  a printout one block of ALV is coming in one page. The alv is grouped according to vendor and Company code. with is_sort-group = '*'.  I read so many forms and found that whenver a list is grouped with something then automatically it will be divided ino pages according to that. But my client requirement is if there are four records in the first group. the system will print the 4 records in the first page then the other records in another group are printed in the next page. but it should be printed like after the 4 records of the first group is over then it should start printing the next group records in the same page.
    I tried using the is_sort-group = 'UL' but the header of the list is getting suppressed with that.
    the variant is 1SAP
    can any one tell me how to handle the situation
    Thanks & regards
    sreehari p

    it is normal
    with * in group you generate a NEW-PAGE event which in turn executes the TOP-OF-PAGE (and print list header)
    with UL in group you don't generate a NEW-PAGE so no list header
    there is no other option

Maybe you are looking for

  • Issue with ALV sceen called using BDC in new task and in background mode

    Hi Gurus, Need your expert advice. I am trying to call one transaction (IS AUTO - VELO) which has ALVs on screen. VELO is being called through BDC in NEW TASK in background. So, the new session is a Dialog session and SY-BATCH is initial here. In two

  • Unsupported third party add ons

    Safari has difficulty in loading and it is suggested that this is due to "Unsupported third party add ons". How do I find what "Unsupported third party add ons" I have on my computer

  • Controlling area hierarchy key

    Dear guru,                     here i am creating controlling area and assign it to co.code also use t-code okkp i have create new hierachy but i have create cost center at that time i got error is controlling area bk01 does not have std. hierarchy k

  • Trouble Installing (Insert Disc 2)

    Hi, i recently downloaded the trial of Adobe Photoshop CS3 Elements (from Adobe's website), I want to see what this program is like before purchasing. The files extracted with no problems, but once near the end of the install i get a prompt telling m

  • HDV Render: blocky sequence results!

    I have a LONG project with two sequences. Both contain three video tracks: two HDV (regular 1440x1080 60i preset) and on DV (720x480 anamorphic). On both sequences, I've used opacity ramps as "cross fade" between the tracks and the three way color co