Re: Refactoring
Posted: Sat Jan 12, 2019 8:38 pm
Try with "send":
Code: Select all
on openStack
send "backSave" to me in 120
end openStack
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Code: Select all
on openStack
send "backSave" to me in 120
end openStack
Code: Select all
on openStack
backSave
end openStack
on backSave
save this stack as ("/Volumes/X1/DWP autosaves/SAVER" && the time && ".livecode")
send "backSave" to me in 120
end backSave
Code: Select all
answer folder "Choose a folder:"
put it
Well, I only copied YOUR script, see viewtopic.php?f=8&t=32003#p175220richmond62 wrote: ↑Sat Jan 12, 2019 9:26 pmThe initial script works NOW because I had OVERLOOKED
that you had called the folder "DWP autosaves" rather than "DWP autosave".
You don't need a suffix actually, a valid stackfile is a valid stackfile, suffix or no suffix. So LC gives you the choice to leave the suffix out or add it (manually), isn't that a nice touch?
If you omit the unit, LC presumes TICKS, so 120 in the script are in fact 2 seconds.Lagi Pittas wrote: ↑Sun Jan 13, 2019 2:45 pmI agree with Jacque about the interval but it is 120 milliseconds not 2 seconds -- whole lot of thrashing goin' on .....
But for our discussionThe earliest technical usage for jiffy was defined by Gilbert Newton Lewis (1875–1946). He proposed a unit of time called the "jiffy" which was equal to the time it takes light to travel one centimeter in a vacuum (approximately 33.3564 picosec
Early microcomputer systems such as the Commodore 64 and many game consoles (which use televisions as a display device) commonly synchronize the system interrupt timer with the vertical frequency of the local television standard, either 59.94 Hz with NTSC systems, or 50.0 Hz with most PAL systems. Jiffy values for various Linux versions and platforms have typically varied between about 1 ms and 10 ms, with 10 ms reported as an increasingly common standard in the Jargon File.[6]
t - with apologies to Peter Sellers (and yes it wasn't Michael Caine - Not many people know that either .... )Not many people know that
TIL - thanks for that. Although I admit to being partial to the quantum of time being the time required for light to travel the Planck length.http://www.todayifoundout.com/index.php ... t-of-time/