Re: Problems with [Applescript]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11123
interpreted = N
texte = I've been doing a lot of tests on this and it seems to like adding an elsestatement clears up all the errors so that something is always returned(i.e. even return ).>>>[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]>> *************************************************************> Christer Olsson Stora Nygatan 21 Phone +46 40 791 50> Art director S-211 37 Malmoe Fax +46 40 97 99 77> Ljusa Ideer AB Sweden http://www.ljusaideer.seJohn A. Hill, V.P. Marketing *********************************Pacific Coast Software * Home of the Web's best11770 Bernardo Plaza Ct. #462 * Catalog and Merchant softwareSan Diego, CA 92128 * http://www.smithmicro.comPhone: 619-675-1106 Fax: 675-0372 *********************************
Associated Messages, from the most recent to the oldest:
I've been doing a lot of tests on this and it seems to like adding an elsestatement clears up all the errors so that something is always returned(i.e. even return ).>>>[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]>> *************************************************************> Christer Olsson Stora Nygatan 21 Phone +46 40 791 50> Art director S-211 37 Malmoe Fax +46 40 97 99 77> Ljusa Ideer AB Sweden http://www.ljusaideer.seJohn A. Hill, V.P. Marketing *********************************Pacific Coast Software * Home of the Web's best11770 Bernardo Plaza Ct. #462 * Catalog and Merchant softwareSan Diego, CA 92128 * http://www.smithmicro.comPhone: 619-675-1106 Fax: 675-0372 *********************************
John Hill
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:
Linux -> OS X (2002)
Sku numbers (1997)
emailer (1997)
NT IIS number of files limit (2003)
One other big addition... (1997)
[WebDNA] 3-5 GB of native WebDNA db in RAM?, else MySQL w/WebDNA [SQL] tags, else skip WebDNA altogether? (2009)
[search] & [encrypt]/[decrypt] (2001)
Limiting user access to .tmpl files (1997)
Exchange rates (2000)
Shell Script needed (2003)
'does not contain' operator needed ... (1997)
OBDC Support (1997)
Re:2nd WebCatalog2 Feature Request (1996)
For those of you not on the WebCatalog Beta... (1997)
WebCat2b13MacPlugIn - [include] (1997)
RE: Automatic Forwarding using WebCat (1997)
Apache 2 (2002)
[CART] (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
[WebDNA] sudo WebCatalogCtl stop won't work (2016)