• 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
Re: start method when closing the applescript app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >start method when closing the applescript app (From: "www.the-mad.de" <email@hidden>)

  • Prev by Date: Re: Path to DeskTop
  • Next by Date: What is the problem with Mail.app?
  • Previous by thread: start method when closing the applescript app
  • Next by thread: What is the problem with Mail.app?
  • Index(es):
    • Date
    • Thread