Re: Open for access with write permission
Re: Open for access with write permission
- Subject: Re: Open for access with write permission
- From: Michelle Steiner <email@hidden>
- Date: Thu, 22 Mar 2007 17:36:02 -0700
On Mar 22, 2007, at 5:02 PM, T&B wrote:
set eof of fileRef to (get eof of fileRef) + 1
write additions to fileRef
close access bar
Why are you opening into fileRef, but closing bar? They should be
the same variable.
Typo; I forgot to change it. The script never got that far so it
never erred there.
This should work:
set UserFile to choose file with prompt "Please choose the
dictionary file to add the words to."
try
close access UserFile
end try
set fileRef to open for access UserFile with write permission
write additions to fileRef
close access fileRef
It doesn't.
--> "File file Dora:Users:michelle:Desktop:en is already open."
--
Nobody ever procrastinated their way to the top.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden