• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem Compiling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem Compiling


  • Subject: Re: Problem Compiling
  • From: jj <email@hidden>
  • Date: Mon, 20 Dec 2004 10:26:40 +0100

[SPECULATION]

I think both "read" and "write" are compiled internally in FM as a
"constant" (related to the "access" property of the "database" class),
instead of the apple-events from the Standard Additions.

When you copy-paste your script to FM, you may want substitute "write" with
"«event rdwrwrit»".

Also, about your script not compiling in Smile... What is the
hilited-offending line when you try to compile?

[/SPECULATION]



jj

--
http://www.macscripter.net/
http://www.osaxen.com/


> At 12:54 PM -0700 18/12/04, Todd Geist wrote:
>> I copied the following routine from apple site.  It will compile in Script
>> Editor, but not Smile and it returns an error when I try to use it inside
>> FileMaker 7.
>>
>> on write_to_file(this_data, target_file, append_data)
>>     try
>>         set the target_file to the target_file as text
>>         set the open_target_file to open for access file target_file with
>> write permission
>>         if append_data is false then set eof of the open_target_file to 0
>>       **  write this_data to the open_target_file starting at eof
>>         close access the open_target_file
>>         return true
>>     on error
>>         try
>>             close access file target_file
>>         end try
>>         return false
>>     end try
>> end write_to_file
>>
>> ** this line causes the following error "Expected end of line, etc. but
>> found identifier."
>>
>> What am I missing?
>
> Your handler compiles, and works correctly, under Smile 2.6.9. Please
> check you've correctly installed the Scripting Additions which ship
> in the download.
>
> Emmanuel


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Problem Compiling (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Problem Compiling
  • Next by Date: Re: Problem Compiling
  • Previous by thread: Re: Problem Compiling
  • Next by thread: Re: Problem Compiling
  • Index(es):
    • Date
    • Thread