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:

ODBC problems between webcat and filemaker pro (2001) invoice.tpl (1998) Email within tmpl ? (1997) 2nd try... any mysql users in the house? (2007) japanese characters (1997) Max Record length restated as maybe bug (1997) Sample Tearoom Search Error (1997) Generating unique SKU from [cart] (1997) ShowNext Command (1997) Need help with emailer- 2 issues (1997) Permission Deny (2003) WCS Newbie question (1997) Search for dates greater than [date] (1997) PIXO with cometsite ... and/or other plugins (1998) Generating unique SKU from [cart] - Still Stumped... (1997) OT: Webcatalog emailer replacement for OSX (2001) sku not found (1997) Shipping Calculation Problem (1997) method of payment (1997) OT-JS why it does not run on Mac (2001)