November 16, 200025 yr How can I put the current time in a global field when a script is run? I have a global field ("Last Update Time") defined as time. The script step is - Set Field ["Last update Time","Time(hour(today),minute(today), seconds(today))"] However the result is always 10:54 AM, not the time the script was run. By the way the script - Set Field ["Last Update","Time"] where "Last Update is a global field formated for a date
November 16, 200025 yr SetField["g_time", "Status( CurrentTime)"] Where g_time is your global time field... Fishma!
November 17, 200025 yr In general, use Status( CurrentDate ) and Status( CurrentTime ) rather than the Today function. Today is only evaluated during the launch of the files, which is probably why you got the same value every time. The Status functions are evaluated when they are called in the script. Chuck
Create an account or sign in to comment