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 else statement 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.se John A. Hill, V.P. Marketing ********************************* Pacific Coast Software * Home of the Web's best 11770 Bernardo Plaza Ct. #462 * Catalog and Merchant software San Diego, CA 92128 * http://www.smithmicro.com Phone: 619-675-1106 Fax: 675-0372 ********************************* Associated Messages, from the most recent to the oldest:

    
  1. Re: Problems with [Applescript] (Kenneth Grome 1997)
  2. Re: Problems with [Applescript] (John Hill 1997)
  3. Re: Problems with [Applescript] (Christer Olsson 1997)
  4. Re: Problems with [Applescript] (Grant Hulbert 1997)
  5. Problems with [Applescript] (Christer Olsson 1997)
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 ).>>>[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.se John A. Hill, V.P. Marketing ********************************* Pacific Coast Software * Home of the Web's best 11770 Bernardo Plaza Ct. #462 * Catalog and Merchant software San Diego, CA 92128 * http://www.smithmicro.com Phone: 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:

Is this possible, WebCat2.0 and checkboxes (1997) Date stamp and purging (1998) Review comparison by PC Magazine: Open for On-line Business (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Just Testing (1997) encripted storage (1998) Cart Numbers (1997) Weird Cookie Problem Part 2 (2007) Search puzzle...selectSearch2databases (2004) [WebDNA] Why doesn't this returnraw redirect to the new page? (2009) WebCat2 beta 11 - new prefs ... (1997) removing programming logic white space (2003) Sendmail truncation in Eudora Clients (1998) Include vs. lookup? (1998) [WebDNA] Listfiles and sort order (2010) 2.1 pricing? (1998) OR-searching (2000) Practice runs ? (1997) Webcat/Webmerchant (1998) $Quit, $CloseDatabase corrections (1997)