FileMaker problem
FileMaker problem
- Subject: FileMaker problem
- From: Jan Erik Moström <email@hidden>
- Date: Sat, 26 May 2001 20:58:30 +0200
I'm trying to define a FileMaker script that should contain an AppleScript, the
problem is that it complains that the script isn't correct ... but in Scripter
it runs just fine and both Script Editor and Smile compiles the code.
Here is the handler it complains about
on saveMeshFile(srcDir, baseName, textToSave)
set fbase to section2filename(baseName)
tell application "Finder"
set meshFileName to srcDir & fbase & ".mesh"
if file meshFileName exists then
move file meshFileName to trash
end if
end tell
set template to open for access (srcDir & fbase & ".temp")
set tmp to read template
close access template
set meshFile to open for access meshFileName with write permission
write textToSave to meshFile
close access meshFile
end saveMeshFile
It seems to complain about the line
set tmp to read template
if I remove that line, it complains about
write textToSave to meshFile
If I remove that everything compiles. Does anyone knows why it complains about
these lines?
jem
--
Jan Erik Mostrvm
mailto:email@hidden
Free Elektron
http://www.mostrom.pp.se/folk/jem/