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: Open for access with write permission



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Open for access with write permission (From: "Stockly, Ed" <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.