MACSCRPT Archives

November 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Apple Message framework v752.2)
Content-Type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Date:
Tue, 21 Nov 2006 20:11:41 -0500
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Mark Lively <[log in to unmask]>
In-Reply-To:
<p0623091dc1893170d39c@[128.253.187.23]>
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (28 lines)
On Nov 21, 2006, at 5:43 PM, Bill Steele wrote:

>> On Nov 21, 2006, at 10:52 AM, Bill Steele wrote:
>>
>>> We have a G4 still running OS 9.2, used mostly for backups. I  
>>> recently hooked up a LaCie external hard drive and installed the  
>>> accompanying Silverlining software, and the result seems to have  
>>> screwed up Applescript's ability to write to files. Scripts that  
>>> used to work now give error messages.
>>>
>> It could be a bad version of the Standard Additions.  There was a  
>> version in there that didn't work right and wouldn't write to a  
>> file that didn't exist.
>
> Actually happens even if the file does exist.
>
Okay.  Then its a problem with the file to alias coercion.

does this work?

set someText to "this is a test"
set foo to alias "Disk:folder:test"
set outFile to open for access file foo with write permission
write someText to outFile starting at 0
close access outFile

Does it work inside a Finder tell?

ATOM RSS1 RSS2