Programming in Numbers?

Hi everyone,
Do you guys know if we can write programs in Numbers?... much like Excel where you can program in VBA. I hear something about using automator... but is there a way to do it so the program is embedded in the spreadsheet and hidden from the user?
Thanks,
Alex

Yvan, I think what your doing in applescript is great, but copying to the cipboard then run a script then paste back in only gives a very limited scope of applications.
What us programmers want is what we can do in XL using VBA. I can manipulate cells directly by "talking" directly to them, or to a range of cells. I can pull data from somewhere else and process it, placing the results inside the tables I want. I want to dynamically create sheets based upon data placed in a source table on sheet1. Creating the appropriate tables according to other data somewhere else, changing the formatting and all properties that you could do by hand, but automate it.
BTW, if you use gui scripting, couldn't the person copy the data, place the cursor in the location they want to paste, run your script, and your applescript would perform the paste for them? Just a thought. Applescipts "English" type language doesn't make a lot of sense to me coming from twenty years of programming basic/java/pascal style. It's syntax seems so backwards to me. I'm glad we have you to help write these things for us.
Thanks for all the help you give on here Yvan, I know you don't get thanked often enough.
Jason

Similar Messages

  • Is it possible to loop a Keynote presentation on an external display while working in another program (say numbers) on my laptop screen?

    I have a 2012 MacBook Air.
    What I would like to be able to do is plug into an external display and project a looping Keynote presentation on the external display. The problem is when I play the Keynote presentation, my laptop screen goes black. Is it possible to play/loop a Keynote presentation on an external display while working in a different program (Pages, Numbers, etc) on my laptop screen?
    Thank you!

    Grant Bennet-Alder West of Boston, USA 
    A new 1TB External drive (suitable to replace your current Internal drive if you choose to) and enclosure can be had for under US$160
    Ehh, you meant $60 ,  not $160
    CassHeger 
    I do need to buy an external HD to be used solely for that purpose.
    Yes, quality HD are cheap as dirt.
    however a likewise Toshiba Internal HD 1TB is $70   (same as used by Apple)
    http://www.ebay.com/itm/TOSHIBA-MQ01ABD100-1TB-5400-RPM-8MB-Cache-2-5-SATA-3-0Gb   -s-Internal-Notebook-/121107538930?pt=US_Internal_Hard_Disk_Drives&hash=item1c3 2 9263f2
    best options for the price, and high quality HD:
    Quality 1TB drives are $50 per TB on 3.5" or  $65 per TB on 2.5"
    Perfect 1TB for $68
    http://www.amazon.com/Toshiba-Canvio-Portable-Hard-Drive/dp/B005J7YA3W/ref=sr_1_ 1?ie=UTF8&qid=1379452568&sr=8-1&keywords=1tb+toshiba
    Nice 500gig for $50. ultraslim and perfect
    http://www.amazon.com/Toshiba-Canvio-Portable-External-Drive/dp/B009F1CXI2/ref=s r_1_1?s=electronics&ie=UTF8&qid=1377642728&sr=1-1&keywords=toshiba+slim+500gb
    2.5" USB portable High quality BEST FOR THE COST, Toshiba "tiny giant" 2TB drive (have several of them, LOT of storage in a SMALL package)    $117
    http://www.amazon.com/Toshiba-Canvio-Connect-Portable-HDTC720XK3C1/dp/B00CGUMS48 /ref=sr_1_4?s=electronics&ie=UTF8&qid=1379182740&sr=1-4&keywords=2tb+toshiba
    *This one is the BEST portable  external HD available that money can buy:
    HGST Touro Mobile 1TB USB 3.0 External Hard Drive  
    $88
    http://www.amazon.com/HGST-Mobile-Portable-External-0S03559/dp/B009GE6JI8/ref=sr _1_1?ie=UTF8&qid=1383238934&sr=8-1&keywords=HGST+Touro+Mobile+Pro+1TB+USB+3.0+72 00+RPM
    Most storage experts agree on the Hitachi 2.5"

  • Problem: program outputs numbers in scientific notation

    my problem is that my program outputs the population in scientific notation instead of round the number to the nearest one. ex: it should say 30787949.57 instead of 3.078794957 E7
    // Calculates the poulation of Mexico City from 1995 to 2018.
    // displays the year and population
    class PopulationCalculator {
    static double r2(double x) {
         //this method rounds a double value to two decimal places.
    double z=((double)(Math.round(x*100)))/100;
    return z;
    } //end method r2
    public static void main(String args[]) {
         double population=15600000.0;
         double rate=0.03;
         System.out.println("Mexico City Population, rate="+r2(rate));
         System.out.println("Year    Population");
         for (int year=1995; year<=2018;year++)  {
             System.out.println(year+ "    "+r2(population));
        population+=rate*population;
        }//end for loop
        System.out.println("The population of Mexico City reaches 30 million on 02/13/17 at 5:38:34am");
        }//end main
        }//end PopulationCalculator
    {code/]

A: problem: program outputs numbers in scientific notation

Or upgrade to JDK 5.0 and user the new java.util.Formatter capability.
You control the rounding and get localization of the fomatted string at
no extra charge. A quick example:
class A {
    public static void main(String[] args) {
        double d = 30787949.57d;
        System.out.println(java.lang.String.format("%,17.2f", d));
}Example output for three different locales:
$ javac -g A.java
$ LC_ALL=fr_FR   java A
    30 787 949,57
$ LC_ALL=en_NZ   java A
    30,787,949.57
$ LC_ALL=it_IT     java A
    30.787.949,57For more information, refer to:
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#formatter

Or upgrade to JDK 5.0 and user the new java.util.Formatter capability.
You control the rounding and get localization of the fomatted string at
no extra charge. A quick example:
class A {
    public static void main(String[] args) {
        double d = 30787949.57d;
        System.out.println(java.lang.String.format("%,17.2f", d));
}Example output for three different locales:
$ javac -g A.java
$ LC_ALL=fr_FR   java A
    30 787 949,57
$ LC_ALL=en_NZ   java A
    30,787,949.57
$ LC_ALL=it_IT     java A
    30.787.949,57For more information, refer to:
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#formatter

  • Clueless as to whether I can do this or not in a program like Numbers

    Before I begin - my disclaimer...
    I have very little training in this area, and am completely clueless whether this can even be done.
    I am trying to consider whether we will be able to create our own charting system in a medical clinic.  In beginning to play with the idea - the first thing that I need to find out would be does a database program like numbers have the ability to create full sentences from information in a give data field?  From there it becomes can you create a workflow that would take data from selected fields in a data base to populate a completed paragraph.
    e.g. - based solely on how I would envision something like this to work (this is not based on anything concrete that I've seen in the past).
    Data/Value in Cell A2 (from some sheet), would automatically populate the dot phrase in a partially pre-populated sentence.  So that if that data in the previous mentioned Cell A2 was "considerable pain" (let's say from a pop-up cell)... then... the following would be completed via automation.
    The patient reported on intake today <value of A2:from some sheet> in the area of chief complaint.
    So that maybe on another sheet the Sentence would read - "The patient reported on intake today considerable pain in the area of chief complaint."
    Below is a sample from a form I've created that we use as a digital new patient intake form.  I'd like to know if we can create something along the lines of the above mentioned to create the paragraph following the screen capture below.  For illustration purpose, I've italicized the text in the full sentences with the data taken from each field of the chart.  Those fields in blue from the chart are cells whose format is pop-up.  The green text is data typed/dictation into the given cell.
    The patient reported on intake today that the symptoms began while bending over to scratch an itch on her ankle.  The initial presentation was reported as immediate, with no changes since onset.  There have since been changes in the patient's breathing, with an increase in symptoms with coughing, and straining.
    Again - I have no formal training in this other than creating the above mentioned chart.
    Any help/suggestions would be greatly appreciated.

    Hi L.T.D.,
    To only answer the question you asked, the answer is yes you can do those specific tasks you mentioned.
    My example:
    Since you don't want the sentence if A2 is blank you would modify this formula to something like this:
    =IF(ISBLANK(A2),"","the patient reports "&A2&" that won't leave.")
    I don't see a problem if all you are looking to do is to translate your form or forms into a report. I could even see several different forms reporting to one sheet that tracks their history. It may require a lot of maintenance if there are an increasing number of forms reporting.
    Sometimes merged cells create difficulty in Numbers. A mix of popups and checkboxes may complicate things.
    I think the previous advice may turn out to be the best, though. You are asking,"If I head this way am I headed to Japan?" I am saying "Yes". They are saying, "You will need a boat!"
    quinn

  • How to make a simple program in numbers that i can use on my iphone

    how can i make a touchable program in numbers that i can trasfer to my iphone and use out in the field of work? i am pretty good at excel sheets,but am still new with my macbook.

    Excel can't make an iPhone application, it can only make a spreadsheet. You would need an iPhone app capable of reading a spreadsheet produced by Excel.

  • Advanced Excel user needing help running VBA program in Numbers 09

    I am preparing for Dental school, a very tough program, indeed, and wanted to use a powerful tool that helped me out in my undergrad:
    I have developed a Visual Basic program in Excel which gives the user a few simple forms through which I can enter data (terms and definitions, or possible test information) and then take short tests, play a silly game, print flash cards and so on.
    I worked very hard to get this going on Office 2007 - very VERY hard given Office 07 is the most evil creation ever!!
    I may resort to running gulp Vista to get this running, but what a pain! I am aware that Applescript is an option, but would hope there is some compatibility with my previous work. The more code I can preserve from my previous program the less time I will have to invest in developing the Mac version.
    This is a highly advanced thing to do, and I realize most people don't do this sort of thing. If anyone is as crazy (and geeky) as me your help would be much appreciated. Thanks in advance!

    Where are you finding Applescript 3.2.1 ?
    As far as I know, the current AppleScript is 2.1.2 and is part of mac Os X 10.6.
    Office for mac is unable to use VBA.
    Numbers is unable to take benefit of this missing VBA.
    AppleScript may be used to mimic some VBA features.
    Look at :
    http://mactech.com/vba-transition-guide/index-091.html
    In fact, I guess that you grabbed Xcode 3.2.1 hoping to be able to build AppleScript applications.
    This require a serious learning curve.
    Look at :
    http://developer.apple.com/Mac/library/releasenotes/ScriptingAutomation/RN-Apple ScriptObjC/index.html
    Yvan KOENIG (VALLAURIS, France) lundi 5 avril 2010 08:01:27

  • I want help doing simple programing on numbers.

    I am too lazy to try to learn it on my own. My first project would be to take the simple employee schedule template under Business in Numbers and modify it to add some sales projections. Very simple stuff.  Is there a company tha

    Under Numbers there is a template under Business that is labled Employee Schedule.
    1.  Overall the schedule is pretty good but the time for clocking in an employee only goes to 11. We are a restaurant/brewery we need clock in times as late at 9 PM and clock outs as late as 3 AM. Need that expanded.
    2.  I would like that spreadsheet to flood another spreadsheet immediately below the schedule that takes total gross salaries for each day. Start with Sunday thru Saturday. So whichever employee works on Sun gets added to the Sunday total. It would look like this, first column has the days of the week ie sun, mon, tues etc next column shows the expected total salaries for the day from the Employee Schedule.
    3. Next column would have projected sales. This number would be filled in by the supervisor and he would guess sales volume for the day.
    4.  The next column would be the result of dividing total gross salaries for each day by the sales projection made by the supervisor. Top of the column would read salaries/sales.
    5.  There would also be a total for the week with salaries/sales as some days like Monday we will be over budget and on busy days like Friday, we would be under budget. As long as my supervisors balance to 20% I will be ok, at least for now:)
    This Tool would help the supervisor to be able to set up and change sheduled hours either up or down to meet our goal of salaries not to exceed 20% of projected sales.
    I can tell this is probably simple for someone that knows this stuff, but for me, hours of time and then never getting it right would be what would happen.
    Thanks so much for your suggestion and I hope you or someone takes this on.
    Ken Carson
    Nexus Brewery
    Albuquerque, NM
    Even as I write it,

  • Is there a way to create a table of contents listing the order of tabs(sheets) in a Numbers document?

    I am planning my wedding and I have this huge Numbers document with 20+ tabs and I have plans to add many more tabs. Is there a way to create a table that has two columns: column 1= order that a tab appears, column 2=tab name? For example, my first three tabs are called Venues, Must Haves, and To Do List (in this order. I'd want this table of contents to be in the first sheet of the document, so it would be like sheet 1. Then I 'd want like the cells of column 1 to be like 2, 3, 4 (2nd, 3rd, 4th sheet in the document), and then the cells of column 2 to say Venues, Must Haves, and To Do List. I can make a tiny table of one cell in each sheet that I copied the name of the sheet and then do like a cell reference for column 2, but I'm having trouble w column 1.

    There is no referential value for the order of the sheets, just the sheet name. Only two things I can think of to suggest:
    Do the same thing for the first column that you do with the second (i.e. put a referential column in the same table as the Name and point to that).
    Seriously consider using a word processor program. Numbers is probably the wrong tool.

  • I need to install Numbers, but my MacBook can't install the current version (I'm running 10.6.8). Where can I get an older version?

    As the question says!

    The App Store version of iWork ‘09 programs (Pages, Numbers & Keynote) will only work with 10.7 or 10.8 with the latest update requiring 10.9. You can get the Work ’09 DVD which will run on 10.6  on eBay or Amazon.com fairly cheap.
    http://www.ebay.com/sch/i.html?_trksid=p4684.m570.l1313.TR0.TRC0&_nkw=iwork+%270 9&_sacat=0&_from=R40 
    http://www.amazon.com/Apple-MB942Z-A-iWork-VERSION/dp/B0014X2UAK
    Check the table under versions in http://en.wikipedia.org/wiki/IWork

  • Why do my Numbers '09 files open in Preview?

    Hello guys,
    I've been having this issue for months, and I'm tired of it. Hopefully, someone can help me out.
    When I try to open my Numbers files by clicking on them directly, they open in Preview. When I look at the 'Show Info' section of the files I get this:
    http://img146.imageshack.us/i/screenshot20110314at104.png/
    Now it looks obvious, right? Change the startup program to Numbers and click 'Change All'? Doesn't work. Everytime I try to 'Change All' Numbers file to open with Numbers, it reverts right back to Preview, while keeping Numbers as the 'default'. The workaround right now is to just change the preferred app for each Numbers file I make back to Numbers.
    So, even though all my Numbers files say 'Numbers (Default)' to begin with, they all open in Preview unless I change it to Numbers.
    So far, I've done the following:
    1) Reinstalled iWork '09 a few times
    2) Using Onyx, rebuild the Launch Services
    3) Repair permissions
    Still, nothing. Also, this issue spans over two MBP 15s with completely different hardware, but using the same Time Machine backup. Any Ideas?

    Maybe the LaunchServices plist is messed up. You might try this:
    To reset all of your files to open with the original default application, you need to delete a certain file. Go to your user folder, and navigate into the Library folder then into the Preferences folder. Find the com.apple.LaunchServices.plist file, and drag it to the Trash. Alternatively, drag it to the Desktop if you think you might change your mind and want to put it back later.
    Over time, you may find that the Open With menu gets cluttered with duplicates, older versions or applications you thought you deleted long ago. To get rid of these, you need to use Terminal. Open up Terminal (from Applications/Utilities) and paste the following line:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Press return and your Open With menu should have been cleaned up to only include the most current applications.
    I found this tip at
    http://361degrees.wordpress.com/2007/11/13/mac-open-with-menu-tips/

  • I want an easy to use program to change a face from one body to another, what would be best for me and my mac?

    I need a program to change a face on one body to another, I need something that is easy to use but will produce a good look.  Any suggestions?

    Your posting this in the spreadsheet forum for Apples iWork program called "Numbers" on mobile devices (iOS).
    Please let us know if you are attempting to make a spreadsheet to track this (This forum)
        or
    Looking for a premade app to do this (a different forum/website/search)
    If the first choice, please give us more information on what aspect of the spreadsheet is giving you an issue and we can attempt to help out some.
    Thanks
    Jason

  • Launchd to run Applescript app. only when an iWorks program is running

    How can I make launchd load an applescript application (that autosaves documents) only when an iWorks program (Pages, Numbers) is running?
    I am using Launchd Editor or Lingon to right the plist file.

    There isn't a launchd trigger I'm aware of that will do this.
    The best you can do with launchd is a StartInterval which launches your application every n seconds and have the script perform the check to see if one of the target applications is running.

  • Need a numbers programmer please

    Hi,
    I have a single page spreadsheet for staff to log their working hours, and it is coming up with a fault on part of the equasion.  I need someone to fix it for me, as my programming doesn't stretch that far.
    It's been programmed in NUMBERS
    Thanks.
    A

    Hi A,
    What error messages are you getting?
    Hint: Times in Numbers are a Date & Time format. An instant in time since midnight on the beginning of 1st January 1904. Numbers also has a Duration format (the difference between two instances in time).
    Please reply with a screen shot of a small part of your screen (large shots are often difficult to read).
    Wayne Contello has written a User Tip on how to post a screen shot.
    https://discussions.apple.com/docs/DOC-6591
    If 'Insert Image' is greyed out, close the Insert Box (red cross on the top right) and click on the camera icon again. Camera icon sometimes needs a wake-up call, but works the second time.
    Remove any personal details before taking the screen shot.
    Regards,
    Ian.

  • Comparing numbers in two arrays

    OK I am making a lottery program in Java. The idea is a user enters 4 numbers, they are saved to disk. A user then starts the draw which creates 4 random numbers and compares them with the numbers a user has chosen and sees if there are any matches. Here's what I have in my Do_Draw method
    public static void Do_Draw() {
            String input;
            int Numbers[] = new int[5];
            int[] numbers = new int[4]; //array declared
            int numBalls = 4; //integer
            int[] balls = new int[numBalls];
            for (int i = 0; i < balls.length; i++) {
                balls[i] = i + 1;
            for (int i = 0; i < numbers.length; i++) {
                int drawnBall = (int)(Math.random() * numBalls);
                numbers[i] = balls[drawnBall];
                balls[drawnBall] = balls[numBalls - 1];
                numBalls--;
                System.out.print(numbers[i] + " "); //print out numbers for user to see
                try {
                    FileOutputStream assfile = new FileOutputStream("a:/draw.txt", true); //true allows the file to be appended
                    PrintStream myOutput = new PrintStream(assfile);
                    myOutput.println(numbers);
    } //end of try
    catch (IOException e) {
    System.out.println("error writing to file, please check your disk");
    System.exit(0);
    } //end of error message
    JOptionPane.showMessageDialog(null, "The draw has taken place, Thank You");
    int matches = 0;
    for (int i = 0; i < numbers.length; i++) {
    for (int j = 0; j < Numbers.length; j++) {
    if (numbers[i] == Numbers[j])
    matches++;
    System.out.print("You have matched" + matches);
    I get a repeated message at the end, I know this but it does tell me if I have any matches. It always tells me I have no matches though. It compiles fine and looks ok but I am not sure why it is not matches. Cheers for all your help

    Hmm...you are trying to match numbers in number[] to Number[], but you do not assign any numbers to Number. I ran your program an Numbers is just full of zeros, so all you need is to enter the numbers the user wants into Number array and you should be fine...if this doesnt work, feel free to write me again.

  • Entering a Block of Numbers

    Finally taking the time (and time and time......) to switch from Appleworks to Numbers. I have a list of things that don't work as I expect but here is just one but its big!
    In Appleworks I can select a block of cells and just start typing numbers, pressing the enter key between each and it will fill up the row then move down to the next row, first column and continue. I can't for the life of me figure out how to do anything close to this in Numbers.
    (Soapbox) It's things like this that make changing programs a BIG time waster for business folks. Is it any wonder that those of us that have a library of Appleworks spreadsheets, databases, draw documents, etc. NEVER wanted to switch? The loss of productivity over the next 2-3 months is going to kill me!!! (stepping down off soapbox)
    Randy

    I do appreciate both your answers. I really do. I take it from the quick reply and the similar answer that this work around is the only way to accomplish the task.
    The big deal of the difference is that both spreadsheet programs available on Mac before Numbers came out had this function available in it. For Apple to ignore the use of a ten-key pad entry style for data entry in a program called NUMBERS is crazy.
    Imagine if I'm entering timecard data into a spreadsheet to do payroll or to create the data to then import into a payroll program. I'm entering two weeks of data. Select first employee row, first Sunday column thru last employee row last Saturday column. Now I type a number and a return or just a return for the 14 days on the time card. That's easy data entry. But with Numbers I have to type number & tab (which is NOT on the 10-Key pad and not a natural way to enter sets of numbers) except on the 14th day when I have to type Return.
    This is what I've been going through: "Wait, was that a Tab or Return this time... Before or After the number... oops... I hit return again... now I'm 3 rows to far down... WOW. How much is the new MS Office? I need Excel!"
    For a BIG Apple fan the idea of having to shift to Excel for such a simple task is mind boggling. I've been able to do this type of data entry on an Apple for years: (Apple ][+, Apple ][GS, Performa 475, Performa 638, PowerMac G3, Pismo PB, Aluminum PB, iMac 24") All the way through I used Appleworks, then ClarisWorks, then Appleworks. All 10-Key friendly.
    Hey, was THAT a soapbox I was on again?
    Thanks again. At least I can stop looking for the answer.

  • Maybe you are looking for

    • How do you unlock a pages document?  nothing I see on the forums duplicates my situation.

      how do you unlock a document in pages that doesn't say "locked" at the top of the page??? 

    • InDesign- scale of the workspace is smaller, cannot adjust

      I am using Window 8 and a student version of adobe InDesign as well as other adobe series. However only in ADOBE INDESIGN I have a problem of having a small workspace- as you can see in the image. It is not adjustable. I tried all the other method I

    • Defining a Package for XI objects

      Hi,     Can i Assign a package for all the objects that i Define in Integration Repository and Integration Directiory. Suppose if i create a data type, message type in IR and i have a package called zvarun created in SE80. so how do i assign these ob

    • Font load order

      I have a situation where Arial Narrow (TT)v 1.15 and Arial Narrow OTTT v 2.35 are installed in the library/fonts folder. when I open a doc on my 10.5x mac(created elsewhere on a mac) that uses the older version in ID3 , it will not even see the older

    • Upgrade Path from CF7 to CF8

      Hi, I have to upgrade an existing production server from CF7 Standard Edition to CF8 Standard Edition and have not found any upgrade instructions specific to this version. I am running this on a Win2003 Server using IIS as the web server. Is it as si