January 4, 200323 yr here's one for you! I am creating a kiosk mode solution, so users will not see the OS X clock in the menu bar - so, I would like to display the current time on my layouts, and have it update every second, or minute... at the moment, I can display the current time, and it stays static unless I change layout. I tried writing a script that endlessly loops and refreshes the window, but that didn't work at all as it means the ApplePeriod icon is constantly up and even then the time didn't update! Any ideas??
January 5, 200323 yr Although I don't really like using paused scripts, you can give this a try and see if suits your needs. loop Set Field [TimeField, Status(CurrentTime)] Set Field [DateField, Status(CurrentDate)] Pause [00:00:01] end loop Run this script when you start up the application. It will pause and loop forever, updating the time and date every second.
January 5, 200323 yr Author I came up with this a little while after my post: Loop Allow User Abort [on] Pause/Resume Script ["0:01:00"] Freeze Window Refresh Window End Loop with a current time symbol :: on my layout, so it was updated every minute, but the screen flickered. I'll try your version, it looks more sensible Thanks!
January 6, 200323 yr If it would be helpful to see a clock tip file, take a look at this one by Steve Wilmes, called "Clock" at: http://www.fmfiles.com/enduserhom11.html HTH Lee
Create an account or sign in to comment