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: AppleScript-Studio Digest, Vol 5, Issue 113




From: Joshua Whalen <email@hidden>
Date: May 30, 2008 4:03:06 PM MDT
To: Clarus the Dogcow <email@hidden>
Subject: unwanted sound effects


Hello again.

Weird behavior in my app. 

While writing to disk using this subroutine:



Have you tried something like this?

set theData to "Here is data" & return
set targetFile to POSIX path of (path to desktop as Unicode text) & "t.txt"

do shell script "echo " & quoted form of theData & " >> " & quoted form of targetFile

If you want to overwrite the file only use one " > " instead of " >> "

Regards,

Craig





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to 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.