Re: Problems with [Applescript]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11128
interpreted = N
texte = >>>>[AppleScript]if (current date - date 1997-04-24 19:06:34)>3600 then>>>>return [INCLUDE redanrostat2.form][/AppleScript]>>>There is an AppleScript syntax error here. This needs to be:>>>>>>[AppleScript]if (current date - date 1997-04-24 19:06:34)>3600 then>>>return [INCLUDE redanrostat2.form]>>>end if>>>[/AppleScript]>>No. That was my original code, and did not work.>>>Also, if there are any quotes inside redanrostat2.form, they can mess up>>>AppleScript>>No quotes there.>>But I solved the problem by avoiding the if statement in [Applescript]:>>>>[ShowIf [AppleScript](current date - date [Datum])[/AppleScript]>3600]>>[INCLUDE rosta.form]>>[/ShowIf]>I've been doing a lot of tests on this and it seems to like adding an else>statement clears up all the errors so that something is always returned>(i.e. even return ).So are you saying that the real solution to all this is that we should*always* end our webcat applescripts with either return or with returnwhat we really want returned just to make it work every time?I really wanted to use this WebCat AppleScript feature but I had so manyproblems earlier that I just gave up. If this technique will resolve mostof my previous problems, I will be happy to start using AppleScript withwebcat again ...Sincerely, Ken Grome ..... ken@iav.com
Associated Messages, from the most recent to the oldest:
>>>>[AppleScript]if (current date - date 1997-04-24 19:06:34)>3600 then>>>>return [INCLUDE redanrostat2.form][/AppleScript]>>>There is an AppleScript syntax error here. This needs to be:>>>>>>[AppleScript]if (current date - date 1997-04-24 19:06:34)>3600 then>>>return [INCLUDE redanrostat2.form]>>>end if>>>[/AppleScript]>>No. That was my original code, and did not work.>>>Also, if there are any quotes inside redanrostat2.form, they can mess up>>>AppleScript>>No quotes there.>>But I solved the problem by avoiding the if statement in [Applescript]:>>>>[ShowIf [AppleScript](current date - date [Datum])[/AppleScript]>3600]>>[INCLUDE rosta.form]>>[/ShowIf]>I've been doing a lot of tests on this and it seems to like adding an else>statement clears up all the errors so that something is always returned>(i.e. even return ).So are you saying that the real solution to all this is that we should*always* end our webcat applescripts with either return or with returnwhat we really want returned just to make it work every time?I really wanted to use this WebCat AppleScript feature but I had so manyproblems earlier that I just gave up. If this technique will resolve mostof my previous problems, I will be happy to start using AppleScript withwebcat again ...Sincerely, Ken Grome ..... ken@iav.com
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Reminder for beta testers (2000)
PCS Frames (1997)
WebDNA 5.0 is now shipping (2003)
Running 2 two WebCatalog.acgi's (1996)
Just a thought (1998)
Nesting Search Within Tag? (1997)
RE: shrink-wrapped version out yet? (1997)
how does [middle] work? (1998)
Same DB Same Time (2004)
webcatalog.debug file (2001)
[Sum] function? (1997)
Preventing Merchant Settling ? (1997)
RAM variables (1997)
WebCat2 - Getting to the browser's username/password data (1997)
[SHOWIF AND/OR] (1997)
Snippet for finding unused Header Fields in the Orders.db (2003)
How to put the Trademark Symbol (%99) in Sendmail? (2003)
RE: Can't get appendfile to work (1997)
[WriteFile] problems (1997)
Opinion: [input] should be called [output] ... (1997)