Re: Filemaker 8.5 stored applescript problem
Re: Filemaker 8.5 stored applescript problem
- Subject: Re: Filemaker 8.5 stored applescript problem
- From: David Simerly <email@hidden>
- Date: Mon, 14 May 2007 11:52:05 -0700
- Thread-topic: Filemaker 8.5 stored applescript problem
- Url: http://www.digital-native.com
Title: Re: Filemaker 8.5 stored applescript problem
On 5/13/07 7:37 PM, "Malcolm Fitzgerald" <email@hidden> wrote:
You are seeing a terminology conflict. Filemaker provides it's own
definition of READ and WRITE. You are trying to call standard additions
"read" command aren't you. The simplest, most unambiguous way to get
around the terminology conflict is to use raw codes.
Um no, I don’t think so. Try searching for the terminology “read” or “write” in FM’s dictionary and you’re not going to find anything. There are no read/write commands listed in the AppleEvents Reference database either. The reason the code is choking at the read is because one cannot pass a file reference or an alias directly to the read command. You must first initialize a file point with “open for access,” and then pass the file pointer to read, like so:
set file_prt to open for access the path
set file_data to read file_ptr until eof
close file_ptr
HTH.
Best,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden