Economy-x-Talk - Sample Scripts
Close Apple Guide Upon Quit
The problem of Apple Guide is that its windows don't close after closing a window. This AS script searches for the AppleGuide extension in the running progresses and quits the AppleGuide process. You can put this script in an AS applet, for instance.
You can also use this script in your HC standalones, perhaps with a different handler.
If you use this script in an applet, remove the dashes from the <continue quit> line.
MS
on run {}
display dialog "This is an example showing how to quit Apple Guide" & ¬
" even in localised system version." buttons {"Okay"} default button 1 with icon 1
end run
on quit {}
closeGuide()
-- continue quit
end quit
on closeGuide()
set y to ""
set guideName to ""
tell application "Finder"
set theProcess to the processes as list
repeat with x in theProcess
get creator type of x
if the result is "reno" then
set guideName to name of x
end if
end repeat
end tell
if guideName is not "" then
tell application guideName to quit
end if
end closeGuide
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.