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 OKend 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 OKend 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:
>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 OKend 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 OKend 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)