Re: AppleScript-Users Digest, Vol 8, Issue 175
Re: AppleScript-Users Digest, Vol 8, Issue 175
- Subject: Re: AppleScript-Users Digest, Vol 8, Issue 175
- From: Chip Howland <email@hidden>
- Date: Tue, 19 Apr 2011 15:51:24 -0600
Date: Tue, 19 Apr 2011 14:15:38 -0400
From: Ruffin Bailey <email@hidden>
Subject: Closing a file you left open (error -49)
To: email@hidden
Further, is there an easy way to get rid of the open file and start
over? I've tried deleting from the command line without luck; my
script still sees the file open the next time I try.
Yes, you can close an open file from a script by using an alias or
file reference. Just make a temporary script to close the problem
file.
set theFilePath to (path to desktop as string) & "test.txt" as string
close access file theFilePath
_______________________________________________
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