> kerry -  these scripts are there to show my problem, as you 
> say a file should be created and then deleted so when the 
> playhead returns to frame 2 after running the button script 
> it should then do this again BUT if i have selected a file 
> from a directory below the movies directory by either buddy 
> api or Mui xtra ie gresult=the moviepath/somefolder/somefile 
> , then fileIO returns 'file already exists'

Ok, that's clear. Charles was on the right track--you just need to close
the file you just deleted. Try this:

on exitFrame me
  schedulefile=new(xtra "fileio")
  openFile(schedulefile, "tempschedule.txt", 0)
  delete(schedulefile)
  closeFile(schedulefile) <-- you need to close it
  createFile(schedulefile, "tempschedule.txt")
  filestatus=status(schedulefile)
  alert schedulefile.error(filestatus)
  delete(schedulefile)
  closeFile(schedulefile)
  set schedulefile=0
end

You might also want to use the global gresult you set in frame 10. E.g.,


  openFile(schedulefile, gresult, 0)

> I cant see either fileXtra4 or PropSave Xtra 
> on macromedias xtra listing - where are they available ?

I haven't used the PropSave Xtra, but the fileXtra 4 is available from
Kent Kersten at http://kblab.net/xtras/FileXtra4/. Remarkably,
especially considering what a great Xtra it is, it's still free.

Cordially,

Kerry Thompson

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to