Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Applescript to save a text file?



I would like to save a file as a text document in Applescript but I cannot figure it out.

I would like to....

set my_log to "This file can not be opened by this program. Please try another format. Thank You!"
open for access my_log
save as file my_log to (path to desktop) as "log.txt"

But it doesn't seem to work. Can anyone help?

Thank you!

Vic Piercy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.