Re: Filemaker 8.5 stored applescript problem
Re: Filemaker 8.5 stored applescript problem
- Subject: Re: Filemaker 8.5 stored applescript problem
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 14 May 2007 14:58:14 -0700
- Thread-topic: Filemaker 8.5 stored applescript problem
>>> 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.
I think that nails it, at least it identifies part of the problem...
> 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.
Ok, so I did just that and indeed found: numerous "read" and "write"
commands in the filemaker dictionary.
>>>>The simplest, most unambiguous way to get around the terminology conflict is
to use raw codes.
I disagree here, I'd say that is among the most ambiguous way to get around
terminology conflicts.
The simplest way is to put the offending command in a tell. I usually use
tell application "finder" to yada yada
In this case, that worked for me, allowing the command to compile. (see
below)
The other part of the problem is that you're unable to see the error when
you compile the script in Script Editor or Script Debugger, so, here's a
tip, if you're writing a script that will live, at runtime, within Filemaker
(or any other program) include
Using terms from "Filemaker Pro"
--your script
End using
Blocks in every handler. If it won't compile inside Filemaker, it won't
compile in those blocks and you can use the nested tell blocks to make it
work.
HTH,
ES.
---
using terms from application "FileMaker Pro"
-- set theDate to (read POSIX file thePath)
tell application "Finder" to set theDate to (read POSIX file thePath)
--or
tell application "Finder"
set theDate to (read POSIX file thePath)
end tell
end using terms from
---
_______________________________________________
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