Re: [Applescript]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35584
interpreted = N
texte = >How can I stop the results of [AppleScript] being displayed on the >template that executes the script; > >This is the script in my template:Two main ways:1. Make your Applescript return something usefultell application Finder your script goes here return OK end tell2. Wrap your Applescript context in a TEXT context, setting a variable with the stuff returned from AS[TEXT]asResult=[APPLESCRIPT] tell application Finder your script goes here return OK end tell [/APPLECSRIPT][/TEXT][SHOWIF [asResult]=OK] Everything's OK! [/SHOWIF][HIDEIF [asResult]=OK] Something's bad! [/HIDEIF]Of course you could/should extend your Applecsript with a proper error handling, so you can return a good error message. -- ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [applescript] support in 4.5 for OS X -- really? (Rob Marquardt 2002)
  2. Re: [applescript] support in 4.5 for OS X -- really? (Scott Anderson 2002)
  3. [applescript] support in 4.5 for OS X -- really? (Rob Marquardt 2002)
  4. [applescript] (Aaron Lynch 2001)
  5. Re: [Applescript] (Christer Olsson 2000)
  6. Re: [Applescript] (Rob Marquardt 2000)
  7. Re: [Applescript] (Stuart Tremain 2000)
  8. Re: [Applescript] (TWFT Mail 2000)
  9. Re: [Applescript] (Stuart Tremain 2000)
  10. Re: [Applescript] (Kenneth Grome 2000)
  11. [Applescript] (Stuart Tremain 2000)
  12. Re: [applescript] (Rob Marquardt 1999)
  13. Re: [applescript] (PCS Technical Support 1999)
  14. Re: [applescript] (PCS Technical Support 1999)
  15. Re: [applescript] (Jesse Williams Proudman 1999)
  16. Re: [applescript] (The Mooseman 1999)
  17. Re: [applescript] (Jesse Williams Proudman 1999)
  18. Re: [applescript] (Aaron Lynch 1999)
  19. [applescript] (Jesse Williams Proudman 1999)
  20. Re: Error with [applescript] (Mícheál O Sé 1999)
  21. Re: Error with [applescript] (The Mooseman 1999)
  22. Re: Error with [applescript] (Mícheál O Sé 1999)
  23. Re: Error with [applescript] (PCS Technical Support 1999)
  24. Re: Error with [applescript] (Kenneth Grome 1999)
  25. Re: Error with [applescript] (Rob Marquardt 1999)
  26. Re: Error with [applescript] (Mícheál O Sé 1999)
  27. Re: Error with [applescript] (Kenneth Grome 1999)
  28. Re: Error with [applescript] (Mícheál O Sé 1999)
  29. Error with [applescript] (Mícheál O Sé 1999)
  30. Re: Error with [applescript] (Dave MacLeay 1999)
  31. Re: Problems with [Applescript] (Kenneth Grome 1997)
  32. Re: Problems with [Applescript] (John Hill 1997)
  33. Re: Problems with [Applescript] (Christer Olsson 1997)
  34. Re: Problems with [Applescript] (Grant Hulbert 1997)
  35. Problems with [Applescript] (Christer Olsson 1997)
  36. [applescript] ( Exec)
>How can I stop the results of [AppleScript] being displayed on the >template that executes the script; > >This is the script in my template:Two main ways:1. Make your Applescript return something usefultell application Finder your script goes here return OK end tell2. Wrap your Applescript context in a TEXT context, setting a variable with the stuff returned from AS[text]asResult=[APPLESCRIPT] tell application Finder your script goes here return OK end tell [/APPLECSRIPT][/TEXT][SHOWIF [asResult]=OK] Everything's OK! [/SHOWIF][HIDEIF [asResult]=OK] Something's bad! [/HIDEIF]Of course you could/should extend your Applecsript with a proper error handling, so you can return a good error message. -- ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ 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:

Emailer choke (1997) still having shipCost.db Problem (1997) DomainList (2005) Working with framesets (1998) [date] for today's date, while inside old order file (1998) more trouble with [showif] in [search] = busted [shownext] (2000) How to append text after the sign & (1997) Problem with version 4 browsers (1998) Claris HomePage messes up the code (1997) My web page only... (2003) [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (2019) WebCat2 - [format thousands] (1997) greater than or equal to (1997) Can't add a field (1998) Error Lob.db records error message not name (1997) taxrate (1999) Grep two things at once? (2005) carriage returns in data (1997) PC Authorize??? (2000) problems with 2 tags (1997)