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:

Date problems-more (1997) Enhancement Request for WebCatalog-NT (1996) slightly OT: advertising schemes (2004) Silly problem!!! (2001) Record Modified Date - SQL ? (2000) AppleScript does not work properly ... (2000) NT or Mac (1998) Cart Number sequence (1997) WebCat Hosting - Pricing Question (2002) [WriteFile] problems (1997) error: Too many nested [xxx] contexts (1997) Multiple catalog databases and showcart (1997) functions... (2005) Going to anchors within a template page (1997) &fieldsdir=ra truely random?? (2000) Webcat 2.0.1 date math bug -> Crash! (1997) denied access (1997) Base64 encryption limitations? (1999) Calendar Snippet Problems (1998) Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)