• 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
Using Applescript to save a text file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Applescript to save a text file?


  • Subject: Using Applescript to save a text file?
  • From: PiercyWorld <email@hidden>
  • Date: Tue, 27 Apr 2004 14:21:05 -0700

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.


  • Follow-Ups:
    • Re: Using Applescript to save a text file?
      • From: Rob Stott <email@hidden>
    • Re: Using Applescript to save a text file?
      • From: Dave Balderstone <email@hidden>
    • Re: Using Applescript to save a text file?
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Posting to a USENET Newsgroup in an Applescript?
  • Next by Date: Re: Using Applescript to save a text file?
  • Previous by thread: Re: Posting to a USENET Newsgroup in an Applescript?
  • Next by thread: Re: Using Applescript to save a text file?
  • Index(es):
    • Date
    • Thread