Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Open for access with write permission



This should be a simple thing:

set UserFile to choose file with prompt "Please choose the dictionary file to add the words to."

set fileRef to open for access UserFile with write permission

-->  "File file Dora:Users:michelle:Desktop:en is already open."

set eof of fileRef to (get eof of fileRef) + 1
write additions to fileRef
close access bar

If I put a close access statement right before the open access statement, I get an error saying that the file isn't open.

If I omit "with write permission", I get an error on the next line saying that it's not open with write permission.

If I delete the file and change the first line to
set UserFile to choose file name with prompt "Please choose the dictionary file to add the words to."


I still get "File file Dora:Users:michelle:Desktop:en is already open."

In short, whether I try to open an existing file or create one from scratch, I get that error.

--
If Liberals hated America, they'd vote Republican.


_______________________________________________ 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


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.