• 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: Open files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open files


  • Subject: Re: Open files
  • From: email@hidden
  • Date: Sun, 17 Mar 2002 00:51:10 EST

Is this (the 'close access all' line) a valid construction for closing all
instances in which problems occurred? I occassionally have the same problem
with leaving hanging files open and have been trying to use this (usually
with sucess) to close them in case of error instead of having to restart. The
obvious test is always whether I can throw the file in the trash & empty it
without the 'file busy' dialog...

Tell App "Finder"
-- using OS 9.2.1 AS 1.6
Try
-- open for access with write permissions
-- write something
on error
close access all
-- or perhaps a 'close access all files who are open for access'?
end try

=-= Marc Glasgow
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: "play sound"
  • Next by Date: Re: theSIMS -- Applescript copy paste from Explorer
  • Previous by thread: Re: Open files
  • Next by thread: Re: Open files
  • Index(es):
    • Date
    • Thread