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 18:16:06 -0700
On Mar 22, 2007, at 5:52 PM, Stockly, Ed wrote:
Michelle, I notice your file is on the desktop. That makes it not
simple.
I'm guessing that somewhere else in your script you're changing the
reference to that file.
Something like this?
set UserFile to (choose file with prompt "yadda") as string
set UserFile to file UserFile
That doesn't seem to work on the desktop.
I have the file on the desktop for convenience. I didn't want to
mess with the real dictionary file. I tried opening an existing file
and I tried creating a new file; both gave me that error.
After writing the above paragraph, I created a copy of the "en" file
in place; using that file works. It's only files on the desktop that
give me the "file already open" error.
I also had to change "the text returned of the result" to "the text
returned of the result as text" because text returned is unicode, and
I needed single byte characters.
I still have one problem, though; it overwrites the file from the
beginning, even with the set eof line.
-- Michelle
--
"English has pursued other languages down alleyways to beat them
unconscious and rifle their pockets for new vocabulary."
_______________________________________________
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