Mailing Lists: Apple Mailing Lists

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

Re: Using Applescript to save a text file?



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>)



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.