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

Re: Using Applescript to save a text file?


  • Subject: Re: Using Applescript to save a text file?
  • From: Rob Stott <email@hidden>
  • Date: Wed, 28 Apr 2004 16:39:37 +0100

On 27 Apr 2004, at 22:21, PiercyWorld wrote:

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


...or if you're on Mac OS X, you could use an (admittedly clunky) bit of shell scripting...

do shell script "touch " & (quoted form of ((POSIX path of (path to desktop)) & "log.txt")) & " ; echo This file can not be opened by this program. Please try another format. Thank You! >> " & (quoted form of ((POSIX path of (path to desktop)) & "log.txt"))

Rob


---

Rob Stott
Development Team
Trident UK

Work: 01482 887212
Mobile: 07881 811533
Home: 01482 671129

More about Trident:
http://www.apple.com/uk/creative/trident/
_______________________________________________
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.


References: 
 >Using Applescript to save a text file? (From: PiercyWorld <email@hidden>)

  • Prev by Date: Re: Unique Identifier for Disk
  • Next by Date: Re: script needed to force shutdown w/o any prompts/interference
  • Previous by thread: Re: Using Applescript to save a text file?
  • Next by thread: debugging folder action scripts
  • Index(es):
    • Date
    • Thread