• 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: JJ <email@hidden>
  • Date: Thu, 05 Apr 2001 09:47:52 +0200

> Message: 11
> From: "David Walsh" <email@hidden>
> To: "APPLESCRIPT" <email@hidden>
> Subject: Dismissing Dialog Box
> Date: Wed, 4 Apr 2001 08:01:08 -0600
>
> 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}

--

I refer you to not-very-old-digests.

> I am trying to develop some automation for a disabled user.
>
The fast way.

Prefab Player (http://www.prefab.com/). It's a little extension that allows
a syntax like:

--YOUR SCRIPT & print document 1
tell app "Prefab Player"
disable user input
if exists button "OK" then
click button "OK"
end
enable user input
end
--END SCRIPT

You called "Prefab" when a print dialog appeared with buttons "OK",
"Cancel", etc.

The very fast way, Akua Sweets SA (http://www.akua.com/)

automate alerts after (integer) -- The number of seconds after which
alerts are automatically 3OK29d.
[preferring button small integer] -- Prefer this button when
trying to first dismiss a dialog.
[pointer jumping boolean] -- Move the mouse to the default button?
[vertical bars boolean] -- Position the timer bars vertically?
[opposite bars boolean] -- Position time bars on the opposite side
(right or bottom) of dialogs.
[movables boolean] -- Handle movable modals as well as modals.
[shortcuts boolean] -- Enable keyboard shortcuts (letters activate
button with letter closest to start).
[log boolean] -- Used to disable the default logging of alert
text.
[persistent log boolean] -- Log to the 3Alertia Log2 file?
Result: string -- The accumulated alert text.

With this command you can dismiss EVERY DIALOG "after x seconds" in your
system until you restart.

AND Okey Dokey control panel.

JJ


  • Prev by Date: Re: Variable-bridges through scripts
  • Next by Date: Re: Recursion script which doesn't?
  • Previous by thread: RE: Dismissing Dialog Box
  • Next by thread: Getting Info on volumes
  • Index(es):
    • Date
    • Thread