Need a clock in Numbers

I want to use Numbers on my iMac (macOS) to display a running clock which I will use for a chess timer. However the NOW function (which is one way to get the time) doesn't actually update on a continuing basis. It seems to require manual editing to update the time. Are there any other Apple products that I might be able to achieve this with? Maybe Pages? Maybe Keynote? Maybe Automator? I've got this sinking feeling that all Apple's products won't deal with clocks or other real time events but are designed to work only with static files. Do I really have to learn how to use Xcode just to display a clock?

iMac (Retina 5K, 27-inch, Late 2014), OS X Yosemite (10.10.4)

Posted on Oct 12, 2018 10:26 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 12, 2018 6:38 PM

Hi MM2,


A search of the (Mac)App Store for 'chess timer' shows one available there. It's a dedicated app named "Game Timer" with a price of under $3.00 (don't know if that is US$ or $CDN).


If you have an iPad, check the App store there for several chess timer apps, many of them free.


Regards,

Barry


EDIT: Some time had passed between downloading your question and getting to it.


Some of the apps for iPad had capabilities beyond simple timer. I didn't read the listings closely, but one may have claimed some game analysis skills.


Regarding the base question of running a clock in Numbers, my understanding is that Numbers can't be directed to poll the system clock at frequent intervals, which would be necessary for anything approaching 'real time' operation of a clock.


It's possible that may have changed since version 3, but I would have expected to see some comment on that in discussions of the STOCK functions. If I've read correctly, these only poll the server when user action causes Numbers to do a recalculation.

B.

11 replies
Question marked as Top-ranking reply

Oct 12, 2018 6:38 PM in response to MiniMe2

Hi MM2,


A search of the (Mac)App Store for 'chess timer' shows one available there. It's a dedicated app named "Game Timer" with a price of under $3.00 (don't know if that is US$ or $CDN).


If you have an iPad, check the App store there for several chess timer apps, many of them free.


Regards,

Barry


EDIT: Some time had passed between downloading your question and getting to it.


Some of the apps for iPad had capabilities beyond simple timer. I didn't read the listings closely, but one may have claimed some game analysis skills.


Regarding the base question of running a clock in Numbers, my understanding is that Numbers can't be directed to poll the system clock at frequent intervals, which would be necessary for anything approaching 'real time' operation of a clock.


It's possible that may have changed since version 3, but I would have expected to see some comment on that in discussions of the STOCK functions. If I've read correctly, these only poll the server when user action causes Numbers to do a recalculation.

B.

Oct 12, 2018 7:27 PM in response to MiniMe2

MiniMe2 wrote:


I wanted to know if Numbers could display a clock in real time in a cell. That's my first question and it remains unanswered. I thought it might be possible because I know there's a way in Numbers using the STOCK function to get a dynamic stock quote into a cell automatically, (I'm not sure how often that stock value is updated) and that's far more complicated to implement that reading a local clock!



Alas, the "dynamic" stock quotes via STOCK no longer work, because Yahoo! (the data provider) changed its policy about use of its API after being acquired by Verizon. STOCK retrieves the closing price of the previous day.


When you say display a "clock" in a cell do you mean display the constantly updating time in a cell? If that's what you mean, then I think the only way Numbers could do that would be via a script that runs at set time intervals. That's possible, but clunky, and on the Mac would seem to have few advantages over just viewing the time in the menu bar.


Not familiar with Stockfish game; I assume that means the Stockfish Chess app.


SG

Oct 13, 2018 6:49 AM in response to MiniMe2

EDITED. I posted accidentally before I was done editing.


It is simple to incorporate an AppleScript-powered real-time clock within Numbers but, when it is running, it switches the focus away from whatever else you might want to do and puts in on the cell with the clock. At least that is what happens with the scripts I have written. Every time the clock updates (once per second, for instance), Numbers jumps to that clock cell. I believe it is possible to return the focus back to where you were but it is still very disruptive. If you add a master "off" switch (a checkbox cell that the script polls) , you could do other things while it is off.


I am playing with a script that creates a column of clocks in a table. Next to each clock is a cell that is either TRUE or FALSE. The script uses those cells to turn its particular clock on/off, either updating the time or keeping the last displayed time. Other tables could use those clocks in various places and you could stop/start them with checkboxes and formulas. I don't know how to get the focus back to wherever you were after it switches to the clocks but I can set it back to a particular sheet, table, and cell as a test and it is impossible to use the document when the clocks are running.

Oct 13, 2018 7:34 AM in response to MiniMe2

MiniMe2 wrote:


That was interesting about Verizon and stocks.


When Excel for macOS was first released, they didn't have support for VBA, but now perhaps they do.


Yes, VBA runs well in Excel on the Mac. For example, I just set up an automatically refreshing clock following the steps here.


Unlike AppleScript with Numbers, the VBA macro leaves the focus where you have it allowing you to continue working while the "clock" is running.


SG

Oct 12, 2018 5:43 PM in response to SGIII

I reiterate here my gratitude for your answer. I will mark your last response as "helpful" because you did answer one of my questions. But indeed I think it is a Numbers specific question. I.e., I wanted to know if Numbers could display a clock in real time in a cell. That's my first question and it remains unanswered. I thought it might be possible because I know there's a way in Numbers using the STOCK function to get a dynamic stock quote into a cell automatically, (I'm not sure how often that stock value is updated) and that's far more complicated to implement that reading a local clock!


I'm puzzled why you would ask "what features I need in a timer ask that don't already exist" since I specifically answered that in my last email when I wrote "so that my timer can include some analysis of [Stockfish] game". That's a specific requirement that I'm 101% confident won't be in any existing timer products. I also stated that I wanted to learn new things, which is a second reason that I hope you don't object to.

Oct 12, 2018 6:36 PM in response to Barry

Nice tip, and it's appreciated, but I was trying to learn how to use Numbers to its maximum potential, and to integrate Stockfish game predictions into my solution, which I'm 101% confident won't be in any iOS timer app.


To go into more detail - I'm (successfully!!) using pattern recognition to identify the characters on a chessboard (at least the animated boards) and then use the program Stockfish to tell me how well the players are doing. Specifically, I'm a fan of Magnus Carlsen and want to understand his games better. I thought Numbers would be a tidy and easy way to display my program output. I can become adept at Numbers while improving my chess game. I'm not a rated player, just a total amateur with a little programming experience. Just having some fun.

Oct 13, 2018 6:58 AM in response to SGIII

That was interesting about Verizon and stocks.


Yes indeed I am talking about the Stockfish chess app. It's not just the time I need displayed, it's also calculations based on the time (eg, a pair of countdowns). I can do the calculations using formulas in cells, but unless I can get the time to display in one cell I can't do the calculations. I'm drawing the conclusion that Numbers has no ability to display any live data. I did tinker with Excel and VBA a bit back at the office, which I think can deal with live data. When Excel for macOS was first released, they didn't have support for VBA, but now perhaps they do.

Oct 12, 2018 2:50 PM in response to Wayne Contello

Thanks for responding. But I'm aware that I can find programs which are timers. I guess I failed to mention that I want other features in a timer app that won't be available in any product, so I have to program it myself. This is why I asked if Apple has any products other than Xcode which will allow me to do some elementary programming using a clock and using a shell to interface with other programs like Stockfish, which I downloaded, so that my timer can include some analysis of the game. I'm willing to learn; indeed I want to learn new things. But having downloaded Xcode I find it a little intimidating at the moment. I haven't found any programming abilities in Keynote or Pages. Automator has some programming abilities but doesn't really have the ability to display output. I am unsure about AppleScript but if I have to learn that I may just focus on Xcode/Swift instead. I also own the programming language Keyboard Maestro and I'm pretty good at it but it's ability to display output is extremely limited. I was hoping Numbers would work. Does the Microsoft Excel spreadsheet for macOS support VisualBasic, or is VisualBasic not included in the macOS version of Excel?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Need a clock in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.