• 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: Dismissing Dialog Box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dismissing Dialog Box


  • Subject: RE: Dismissing Dialog Box
  • From: Hellum Timothy <email@hidden>
  • Date: Wed, 4 Apr 2001 13:59:35 -0400

I believe the "Display Dialog" scripting addition allows for automated
button returns of default buttons. This was pointed out to me just
yesterday, so I haven't tried it yet. The test from the Display Dialog
dictionary runs as follows:

display dialog: Display a dialog.
display dialog anything -- title of dialog
[default answer anything] -- default editable text
[buttons list] -- list of up to three buttons
[default button anything] -- name or number of default button
[with icon anything] -- name or id of the icon to display
[with icon stop/note/caution] -- display one of these system icons
Result: reply -- record containing the button hit and text entered (if
any)

HTH,

Timothy

Photodesk
The Globe and Mail
www.globeandmail.ca
(416) 585-5375
_______________________________
Once again the thought strikes me:
Even half is quite a bit of wit.
~ Tom Waits

> ----------
> From: David Walsh
> Sent: Wednesday, April 4, 2001 10:01 AM
> To: APPLESCRIPT
> Subject: Dismissing Dialog Box
>
> I wrote the script below to run on a machine with two hard drives.
> The user wanted the second hard drive to be unmounted on start-up.
> The problem is that a dialog box pops up asking if the user
> if they want to unmount the hard drive (default button OK).
>
> I have tried MouseClick (Sandi's Additions) but
> it does not seem to work the way I have used it.
>
> Hope someone can help me on this.
>
> tell application "Finder"
> set somelist to list disks
> if "Your Disk" is in somelist then
> set thisdisk to "Your Disk"
> end if
> put away item thisdisk
> end tell
> MouseClick At {1106, 815}
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Prev by Date: size of monitor under OS X
  • Next by Date: [Admin] lists.apple.com mailing list memberships reminder
  • Previous by thread: Re: Dismissing Dialog Box
  • Next by thread: Re: Dismissing Dialog Box
  • Index(es):
    • Date
    • Thread