Saving as .txt file FROM my app.

I’m really stuck as to how you save as either .txt or .rtf with the app i’m making, i’ve tried

save: Save an object.
save reference – the object for the command
[as Unicode text] – The file type in which to save the data.
[in alias] – The file in which to save the object.

From the dictionary but It doesn’t work, can anyone clear this up for me??

All I want it to do is the ability of saving the contents of the text field into a .txt file.

Never fear, writing a text file is no problem. Check out my post in this thread for all the code you’ll need. 8)

j

That script is great! Thanks man, All I did was add

set myFileContents to contents of text view "texty" of scroll view "scrolly" of window "Main"

:smiley: