Prevent this double dialog
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