Re: Save a file from textEdit - OS X
Re: Save a file from textEdit - OS X
- Subject: Re: Save a file from textEdit - OS X
- From: Mr Tea <email@hidden>
- Date: Wed, 21 Nov 2001 21:25:03 +0000
This from Chris Prew - dated 19/11/01 5.49 pm:
>
Hi, I'm writing a script that creates a text file in TextEdit (OS X 10.1)
>
based on some user input. Then it saves the file to a directory that is also
>
based on the user input. I've used most variations of the save command I
>
can think of, but its not saving the file.
Hi, Chris.
This isn't a direct answer to your question, but may offer a simpler way to
do the same thing. I can't test this on 10.1, because Apple's European
Distribution Centre (a lock-up in a Dublin back-street) has, as yet, been
unable to provide me with a copy (tooth-gnashing sound fx).
In OS 9 (and I pray that the same is true in X) you can do all this directly
with AppleScript, by creating the document at the desired location (and with
the desired creator type) opening it for access and writing the contents to
it - no need to trouble the text editor at all (just close access when
you've finished, otherwise the gremlins will get you).
Mr Tea
--
Brew of the day: African Blend