Re: Catch click on dock icon ?
Re: Catch click on dock icon ?
- Subject: Re: Catch click on dock icon ?
- From: Peter Bunn <email@hidden>
- Date: Fri, 31 Aug 2007 22:27:37 -0500
I think the following can be adapted to suit your needs, and does not
require a stay open app...
Save this example as an app bundle named 'Wait'.
Peter B.
-----
-- some of your script
tell me to activate
display dialog "Do it now...?" buttons {"Cancel", "Wait", "OK"} default
button 3
set button_pressed to button returned of result as text
if button_pressed is "Wait" then
tell application "System Events"
set visible of application process "Wait" to false
repeat until visible of application process "Wait" is true
end repeat
end tell
end if
-- resume script on dock click
tell me to activate
display dialog "Are you sure you're ready...?" buttons {"Cancel", "OK"}
default button 2
-- rest of script
-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden