• 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
Suppress dialog box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppress dialog box


  • Subject: Suppress dialog box
  • From: Steven Valenti <email@hidden>
  • Date: Thu, 25 May 2006 09:27:01 -0400

I'm using OS 10.3.9, CIFS protocol thru ADmitMac to connect to a window server. When using application Mail if you attach a jpg file then remove it, mail wont let go of the file. You then can't move the folder the file is contained in on the server and ejecting the mounted server results in a Finder dialog box saying "The disk "AppleCore" is in use and could not be ejected. Try quitting applications and try again."

I have a script that needs to move job folders around at the end of day but can't. What I want to do is have the script unmount the server and if it can't, quit the Mail application then I'll be able to unmount the server to make the client let go of these files. The following script isn't giving the error I thought it would and gives the same finder dialog box that the server is in use. I tried using ignoring application responses but it still gives the box with no error in script. I could quit the Mail application to start with but it's not necessary if the disk can eject.

try
tell application "Finder" to eject disk "AppleCore" --If disk can't eject, Finder box shows here
on error
tell application "Mail" to quit
tell application "Finder" to eject disk "AppleCore"
end try

How can I suppress this box or get rid of it immediately if it pops up. I could then see if the disk exists and if so make my own error.


Steven Valenti
Macintosh Support Specialist
Zippo Mfg. Co.
33 Barbour Street
Bradford, PA 16701
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: whose clause with two conditions?
  • Next by Date: Re: whose clause with two conditions?
  • Previous by thread: Re: whose clause with two conditions?
  • Next by thread: Re: Suppress dialog box
  • Index(es):
    • Date
    • Thread