• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript-Users Digest, Vol 8, Issue 175
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Closing a file you left open (error -49)
  • Next by Date: Re: Closing a file you left open (error -49)
  • Previous by thread: Re: Closing a file you left open (error -49)
  • Next by thread: Re: Closing a file you left open
  • Index(es):
    • Date
    • Thread