Re: Write file command in Filemaker
Re: Write file command in Filemaker
- Subject: Re: Write file command in Filemaker
- From: Matt Deatherage <email@hidden>
- Date: Tue, 3 Oct 2006 10:25:28 -0500
On 10/3/06 at 9:05 AM, Jay Louvion <email@hidden> wrote:
That was indeed the trick I needed to get this thing on the road. I
had completely forgotten the ³using terms from² to get things to
compile. Finder and System Events can¹t write, it seems from this
experience.
Just having skimmed this thread, I don't think the problem is
that other
things can't "write". The problem is that "read" and "write"
are part
of FileMaker's dictionary, so when you compile those words
inside a
"tell application 'FileMaker Pro'" block, AppleScript is trying
to use
FileMaker's terminology, not the scripting addition terminology for
files that you want.
Putting it in some "using terms from" block that does not have
"read" or
"write" may solve the problem. In my own scripts, I've worked
around it
by using the raw event codes in the script source:
Instead of "read", paste in «event rdwrread»
Instead of "write", paste in «event rdwrwrit»
Note that these will decompile as "read" and "write", so I keep the
codes in a comment just above the script line to paste them back in.
This is a pain during iterative development, but it's the only
way I
know to *guarantee* that I get the right scripting addition command
where I want it when dealing with apps that also use "read" or "write"
in their own terminology.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"I want everybody to tell me the truth, even if it costs them
their jobs."
-- Samuel Goldwyn
_______________________________________________
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