Re: AppleScript does not work properly ...

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27418
interpreted = N
texte = >Kenneth Grome wrote at 12/02/00 22:38 > >>Why is it that when I run an applescript in the Script Editor, it works >>fine, but when I copy and paste that exact same script into a webcatalog >>applescript context, it fails? > >Often this is because the script fails to target an application, >ScriptEditor deals with calls that are handled by the Finder or some >scripting components without the request being explicitly being directed >to the FInder (etc). > >> >>This text appears on the resulting web page: >> >>Çhandler download_fileÈ > >handler download_file > >My guess: you need to target the Finder or URL Access Scripting. Post >the bit of script that makes that call and I'll have a look. Here's the entire script, please tell me what you find that's wrong:on run (file_URL) set download_folder to path to launcher items folder as text set the file_name to abc123 set the file_path to download_folder & file_name set the file_URL to http://webdna.net/index.tpl if download_file(file_URL, file_path) is false then return Download problem. end runon download_file(file_URL, file_path) tell application Finder if (the creator type of every process) contains «class uasc» then tell application URL Access Scripting to quit end if end tell try with timeout of 120 seconds tell application URL Access Scripting download the file_URL to file file_path replacing yes quit end tell end timeout return true on error error_message number error_number return false end try end download_file================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: AppleScript does not work properly ... (WebDNA Support 2000)
  2. Re: AppleScript does not work properly ... (Christer Olsson 2000)
  3. Re: AppleScript does not work properly ... (Kenneth Grome 2000)
  4. Re: AppleScript does not work properly ... (Clive Bruton 2000)
  5. AppleScript does not work properly ... (Kenneth Grome 2000)
>Kenneth Grome wrote at 12/02/00 22:38 > >>Why is it that when I run an applescript in the Script Editor, it works >>fine, but when I copy and paste that exact same script into a webcatalog >>applescript context, it fails? > >Often this is because the script fails to target an application, >ScriptEditor deals with calls that are handled by the Finder or some >scripting components without the request being explicitly being directed >to the FInder (etc). > >> >>This text appears on the resulting web page: >> >>Çhandler download_fileÈ > >handler download_file > >My guess: you need to target the Finder or URL Access Scripting. Post >the bit of script that makes that call and I'll have a look. Here's the entire script, please tell me what you find that's wrong:on run (file_URL) set download_folder to path to launcher items folder as text set the file_name to abc123 set the file_path to download_folder & file_name set the file_URL to http://webdna.net/index.tpl if download_file(file_URL, file_path) is false then return Download problem. end runon download_file(file_URL, file_path) tell application Finder if (the creator type of every process) contains «class uasc» then tell application URL Access Scripting to quit end if end tell try with timeout of 120 seconds tell application URL Access Scripting download the file_URL to file file_path replacing yes quit end tell end timeout return true on error error_message number error_number return false end try end download_file================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Kenneth Grome

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:

WebCat2: Formulas.db question (1997) add to cart within a page? (1997) Search Engines (2000) Stat analyzer (1997) Giving out error pages (1997) WebCatalog 4.0.2rc1 and rc2 crash WebSTAR on quit (2001) OT (sort of) WAP/WML and 'form' posts (2003) Looking for a Manual (1997) [WebDNA] An alternative to hosting... (2009) Can you do this??? and other stuff (1997) WebCat2b15MacPlugin - showing [math] (1997) RE: OK, here goes... (1997) RE: Missing contexts on NT (1997) [searchString] (1997) Help formatting search results w/ table (1997) re:check boxes (1997) Secure server question (1997) Appending Information from one db to another (1998) pc (1997) [search] within [listfiles]? (2003)