• 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
Prevent this double dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prevent this double dialog


  • Subject: Prevent this double dialog
  • From: Gnarlodious <email@hidden>
  • Date: Sun, 26 Sep 2004 08:37:19 -0600

Let's say I use "on idle" but also "on run" in the same script. It then
executes the handler twice on startup.
How might I suppress the firstrun dialog when starting the Script
Application?

--------
on idle
    beep
    displayDialog()
    return 20
end idle

on run
    displayDialog()
end run


to displayDialog()

    tell application "Finder" to set focus to name of (path to frontmost
application)

    tell application focus to display dialog focus & " is frontmost" giving
up after 1 with icon note buttons {""}

end displayDialog


-- Gnarlie

 _______________________________________________
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

  • Follow-Ups:
    • Re: Prevent this double dialog
      • From: Paul Berkowitz <email@hidden>
    • Re: Prevent this double dialog
      • From: Brian Johnson <email@hidden>
  • Prev by Date: Re: Picking data from a record
  • Next by Date: Re: Picking data from a record
  • Previous by thread: Really, really simple solution to Terminal window issue...
  • Next by thread: Re: Prevent this double dialog
  • Index(es):
    • Date
    • Thread