Re: start method when closing the applescript app
Re: start method when closing the applescript app
- Subject: Re: start method when closing the applescript app
- From: Takaaki Naganoya <email@hidden>
- Date: Fri, 20 Apr 2007 13:24:54 +0900
Hi,
Just use "on quit" event handler.
<AppleScript>
on run
display dialog "started!!"
end run
on quit
somethingOnQuit("I'll quit") of me
continue quit --Don't forget this!
end quit
--called when quitting
on somethingOnQuit(aMes)
display dialog aMes
end somethingOnQuit
</AppleScript>
Attachment:
quit handler test.zip
Description: Zip archive
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
On 2007/04/20, at 3:27, www.the-mad.de wrote:
Hi dudes,
is it possible to jump into a specified method when closing an
applescript application with command + q and how can i start and
close specific terminal windows without to influence potential
opened terminal windows from the user.
best regards
Ronny Pflug
Mail: email@hidden
Web: http://www.the-mad.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
mark.nu
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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