Re: Problems with [Applescript]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11114
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 >AppleScriptNo 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 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)
>>[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 >AppleScriptNo 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 Christer Olsson

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:

off topic - dna snipets (1997) Generating unique SKU from [cart] (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Variables for chat (1997) Web Developer Product Awards (1997) Shopping carts and reloading pages (1997) SetHeader not Working (2006) PCS Frames (1997) WC2.0 Memory Requirements (1997) serial number generation (1997) WordBreak Qestion (part 2) (1998) Shipcost update problem (1997) problems with 2 tags (1997) How far do [showif]s go? (1997) setting taxable to true (1997) [WebDNA] Passing a text variable via copyfile (2019) shipcost (1997) Number of cars in cart... (2004) FileMaker and WebCat - .hdr OK Merge not OK (1999) Extra Text Fields (was Another question) (1997)