| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Michelle,
The fact that the script never got to the "close" statement is most likely the problem. It is leaving the file open when it errors. I will usually wrap my write statements in a try handler like this, just in case: set the_file to (choose file name with prompt "Choose a name and location for your text file.") try set file_pointer to (open for access the_file with write permission) write "Your text here" to file_pointer on error close access file_pointer end try close access file_pointer To get out of your current predicament, I'd suggest opening a *new* script, and just run close access "path:to:file" and see if that closes it. Then rewrite your write handler as above and you should be good. HTH, Vince |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.