• 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
How to close a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to close a file


  • Subject: How to close a file
  • From: "Douglas P. McNutt" <email@hidden>
  • Date: Tue, 2 Nov 2004 14:58:02 -0700

AppleScript on Mac OS 9.1:  Script editor 1.1.3

I have opened an output file using this line.

  property logPath : "Ganymede:Documents:commands"
  global thelog
  set thelog to (open for access file logPath with write permission)

I write a bunch of stuff and the script ends but the file is still open and MPW won't look at the result. The lines:

   close file logPath
   close thelog

compile OK but fail on execution. Would someone provide the correct syntax? As of now I have to quit the script editor to see my results.
--

-->  Halloween  == Oct 31 == Dec 25 == Christmas  <--
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to close a file
      • From: "Adam K. Wuellner" <email@hidden>
  • Prev by Date: Re: Trouble Getting Into AppleScript
  • Next by Date: Re: How to close a file
  • Previous by thread: issues creating account in OS X Mail
  • Next by thread: Re: How to close a file
  • Index(es):
    • Date
    • Thread