• 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
FileMaker problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: FileMaker problem
      • From: Jan Erik Moström <email@hidden>
    • Re: FileMaker problem
      • From: David Graham <email@hidden>
  • Prev by Date: Html link to same page
  • Next by Date: Html link to same page - SOLVED
  • Previous by thread: Html link to same page
  • Next by thread: Re: FileMaker problem
  • Index(es):
    • Date
    • Thread