Re: AppleScript Error

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39340
interpreted = N
texte = Have you tried a simple applescript to test that you're getting the [applescript] context to work properly? Something like:[applescript] property fdb : test.db return fdb [/applescript]

which should display test.db on the page...If that works, start adding in your real code line by line until it breaks, then try something else.- brian At 2:51 PM 10/12/2001, David Doda wrote: >I did, same result. > >David > >> From: Brian Fries >> Reply-To: (WebCatalog Talk) >> Date: Fri, 12 Oct 2001 11:06:41 >> To: (WebCatalog Talk) >> Subject: Re: AppleScript Error >> >> Try removing the on run and end run lines. >> >> - Brian >> >> >> At 9:54 AM 10/12/2001, David Doda wrote: >>> Hi, >>> >>> I am trying to add a record to an FMPro db using the Applescript >>>given below >>> embedded in a .tpl page: >>> >>> *********************************** > >> property fdb : test.db >>> on run >>> tell application FileMaker Pro >>> try >>> activate >>> open {fdb} >>> end try >>> try >>> do script Import >>> end try >>> end tell >>> end run >>> *********************************** >>> >>> As an Stand alone Applescript it works fine, goes to test.db and does the >>> 'Import' FMPro script which reads the new test.txt file and adds >>>the record. >>> >>> My problem is that when I copy this Applescript into a .tpl page inside a >>> [Applescript]....[\Applescript] as such: >>> >>> >>> *********************************** >>> >>> >>> >>> >>> Test >>> >>> >>> >>> This is a Test of an Embedded Applescript. >>>

>>> >>> [AppleScript] >>> >>> property fdb : test.db >>> >>> on run >>> tell application FileMaker Pro >>> try >>> activate >>> open {fdb} >>> end try >>> try >>> do script Import >>> end try >>> end tell >>> end run >>> >>> [/AppleScript] >>> >>>

>>> It Should be Done! >>> >>> >>> >>> *********************************** >>> >>> I get the following error: >>> >>> *********************************** >>> This is a Test of an Embedded Applescript. >>> >>> Expected ÒonÓ but found ÒendÓ. >>> >>> It Should be Done! >>> *********************************** >>> >>> Which I don't understand. Any help would be appreciated. >>> I am running WCAT 3.04, OS9.1 on a G3 Mac. >>> >>> Thanks, > >> David Doda -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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 error (Dave Hurley 2003)
  2. Re: AppleScript error (Dave Hurley 2003)
  3. Re: AppleScript error (Tim Robinson 2003)
  4. Fwd: AppleScript error (Dave Hurley 2003)
  5. Re: AppleScript Error (David Doda 2001)
  6. Re: AppleScript Error (Christer Olsson 2001)
  7. Re: AppleScript Error (Brian Fries 2001)
  8. Re: AppleScript Error (David Doda 2001)
  9. Re: AppleScript Error (Brian Fries 2001)
  10. AppleScript Error (David Doda 2001)
  11. Re: Applescript error (Bob Mosebar 1998)
  12. Re: Applescript error (bob 1998)
  13. Re: Applescript error (PCS Technical Support 1998)
  14. Re: Applescript error (Bob Mosebar 1998)
  15. Re: Applescript error (Bob Mosebar 1998)
  16. Re: Applescript error (Rob Marquardt 1998)
  17. Re: Applescript error (PCS Technical Support 1998)
  18. Applescript error (Bob Mosebar 1998)
Have you tried a simple applescript to test that you're getting the [applescript] context to work properly? Something like:[applescript] property fdb : test.db return fdb [/applescript]

which should display test.db on the page...If that works, start adding in your real code line by line until it breaks, then try something else.- brian At 2:51 PM 10/12/2001, David Doda wrote: >I did, same result. > >David > >> From: Brian Fries >> Reply-To: (WebCatalog Talk) >> Date: Fri, 12 Oct 2001 11:06:41 >> To: (WebCatalog Talk) >> Subject: Re: AppleScript Error >> >> Try removing the on run and end run lines. >> >> - Brian >> >> >> At 9:54 AM 10/12/2001, David Doda wrote: >>> Hi, >>> >>> I am trying to add a record to an FMPro db using the Applescript >>>given below >>> embedded in a .tpl page: >>> >>> *********************************** > >> property fdb : test.db >>> on run >>> tell application FileMaker Pro >>> try >>> activate >>> open {fdb} >>> end try >>> try >>> do script Import >>> end try >>> end tell >>> end run >>> *********************************** >>> >>> As an Stand alone Applescript it works fine, goes to test.db and does the >>> 'Import' FMPro script which reads the new test.txt file and adds >>>the record. >>> >>> My problem is that when I copy this Applescript into a .tpl page inside a >>> [Applescript]....[\Applescript] as such: >>> >>> >>> *********************************** >>> >>> >>> >>> >>> Test >>> >>> >>> >>> This is a Test of an Embedded Applescript. >>>

>>> >>> [AppleScript] >>> >>> property fdb : test.db >>> >>> on run >>> tell application FileMaker Pro >>> try >>> activate >>> open {fdb} >>> end try >>> try >>> do script Import >>> end try >>> end tell >>> end run >>> >>> [/AppleScript] >>> >>>

>>> It Should be Done! >>> >>> >>> >>> *********************************** >>> >>> I get the following error: >>> >>> *********************************** >>> This is a Test of an Embedded Applescript. >>> >>> Expected ÒonÓ but found ÒendÓ. >>> >>> It Should be Done! >>> *********************************** >>> >>> Which I don't understand. Any help would be appreciated. >>> I am running WCAT 3.04, OS9.1 on a G3 Mac. >>> >>> Thanks, > >> David Doda -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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/ Brian Fries

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:

Updating a database once per day - An example (1998) I need to get a [grep] (2003) Size limit for tmpl editor ? (1997) [isfile] ? (1997) Date search - yes or no (1997) Thanks Will and Christer (was: need help with [sendmail] and[showif]s) (1998) Weird problems with [SHOWIF]s (1997) WebCatb15 Mac CGI -- [purchase] (1997) is your webDNA site 'froogle' ready ??? (2003) Nested search (1997) raw=T is broken in [include] (1997) Searchable list archive (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) The USArea® Network web site ... (1997) [WebDNA] WebDNA jQuery JSON javascript stuff (2010) Upgrade Pricing? (2003) [INCLUDE] Limitations (1998) Frames and WebCat (1997) Bug? (1997) Getting Emailer to send mail (1997)