Re: When is a file open but not open?
Re: When is a file open but not open?
- Subject: Re: When is a file open but not open?
- From: Emmanuel <email@hidden>
- Date: Sat, 6 Aug 2005 16:08:13 +0200
At 9:26 AM -0400 8/6/05, deivy petrescu wrote:
On Aug 6, 2005, at 4:56, Emmanuel wrote:
set r to open for access f with write permission
write {name:"deivy"} to r
write {name:"emmanuel"} to r
close access r
set r to open for access f
set x to read f as record
set x to read f as record
close access r
x's name
As per your request:
<script>
set pd to path to desktop as Unicode text
set r to ("" & pd & "testanu.txt") as alias
write {name:"Santos"} to r
write {name:"Santos Campeao"} to r
set x to read r as record
x's name
--> "Santos Campeao"
The game was not to print "Santos Campeao". It was to store several
records in one file (you store only one) and then retrieve, for an
example, the 2nd one.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden