• 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
Saving info to a newly created text file from within a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving info to a newly created text file from within a script


  • Subject: Saving info to a newly created text file from within a script
  • From: email@hidden
  • Date: Thu, 19 Jul 2001 16:25:49 -0700

I'm writing a script to extract stylesheet info from a Quark document and
write it to a tab-delimited text file, so I can then import this into
Filemaker Pro for easier study. As a beginning scripter, I've run into a
couple elementary problems.

1) What method would you recommend for creating, opening, writing, and
closing a simple text file from my Applescript? Are there 3rd party OSAX
that ease this simple text file management task? Or should I use the
scriptability of some other text editor (e.g., Tex-Edit) to accomplish the
task?

2) My first attempts at opening, writing, and closing a file ran into
errors after the file was opened but before the script closed the file. The
result was a file sitting there open on my desktop (i.e., unable to open
again, to delete, or whatever). How do I close this file without restarting
my Mac? Does force-quitting the Finder do the job? Any less drastic way
(e.g., via Applescript)? More importantly, how can I avoid this situation
in the future?

- david

---
David Minehart
Publishing Systems Manager
InfoWorld Media Group
650-312-0524


  • Prev by Date: Re: How to quit an applescript this way?
  • Next by Date: SOAP and XML with AppleScript?
  • Previous by thread: Scripting Wait Times
  • Next by thread: SOAP and XML with AppleScript?
  • Index(es):
    • Date
    • Thread