August 20, 200718 yr Newbies I've inherited an old FMP application with multiple scripts. One of them (I suspect) is causing the app and FMP itself (actually v. 6.0 - Yes, I know!) to freeze; I want to try and capture at least entry and exit into each script and subscript called by the app to a log - so that at least I can identify any bugs in the script causing the freeze. What's the script syntax, please, for a line that will, for example, write to a text file (I'm on Tiger, 10.4.10) something like: print [entering script 1a] ... script lines ... print [completed script 1a] etc. Any other suggestions for ways to log script execution gratefully received. Thanks!
August 21, 200718 yr "What's the script syntax, please, for a line that will, for example, write to a text file" There isn't one in FMP. Instead, write data to a field using Set Field[]. Alternatively, pepper the scripts with pause steps. Your best bet is to get a copy of FMP 6.0 Developer and run the script debugger.
August 21, 200718 yr Author Newbies Vaughan, Thanks. In fact I suspect that there's no bug in the script itself. The freeze I'm experiencing is, I think, caused by something else (network?, data corruption?, a plugin?). It's a web publishing application that runs unattended overnight so pauses won't help: what I need is a way to log as each of the scripts and subscripts has been entered and exited so that I can find which one if causing the failure. How could I do that with Set Field[]: since FMP freezes completely, what I must do is write just those simple 'I'm here' and 'Now I'm here' - ideally to an external text file. There isn't one in FMP. Instead, write data to a field using Set Field[]. Alternatively, pepper the scripts with pause steps. Your best bet is to get a copy of FMP 6.0 Developer and run the script debugger.
Create an account or sign in to comment