Thursday, January 18, 2018

#1 2003-04-28 12:46:51 pm

Beweis
Member
From:: Berlin - Germany
Registered: 2002-12-08
Posts: 2
Website

Newbie-Question about a Cancel button

I prepared a panel window with some buttons. Every button calls another applescript. Each script runs with the  "on clicked theObject". I made a status bar and a Cancel-button on the same panel. They are only visible when theObject is clicked. This works fine.
But I have no idea how to make the Cancel-button stopp the running script and after that load the nib again. I'm not allowed to make a second "on clicked" action in the scripts. I looked into the documentation but found no way to do this.
Hope, someone can help me out.
Thanks in advance

Dirk
http://homepage.mac.com/beweis

Applescript:


on clicked theObject
set visible of button "Cancel" of window "Panel" to true
-- the script runs
-- but how to enable the Cancel button javascript:emoticon(':shock:')
end on clicked

Offline

 

#2 2003-06-26 07:52:43 am

Sketch
Member
Registered: 2003-04-30
Posts: 9

Re: Newbie-Question about a Cancel button

perhaps this will help

Applescript:

on clicked theObject
   if title of theObject is "Something" then
       do something
   else if title of theObject is "Cancel" then
       quit
   end if
end clicked

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)