Hello all,
I’m not sure why but this script does not work, it never displays a dialog!
Please help!
Thanks!
on clicked theObject
if the name of theObject is "submitButton" then
display dialog ("This has been submitted.")
else if the name of theObject is "cancelButton" then
tell me to quit
else if the name of theObject is "loadButton" then
display dialog ("Loading...")
else if the name of theObject is "chooseButton" then
set treat packages as directories of open panel to true
set can choose directories of open panel to false
set can choose files of open panel to true
set allows multiple selection of open panel to false
display open panel attached to window "mainWindow"
end if
end clicked
on panel ended theObject
--if the name of theObject is "chooseButton" then
--set ppdLocation to path name of open panel
display dialog "The panel was ended, so I am envoked."
--end if
end panel ended
Also, I’m wondering how I could display a dialog as a sheet, that I could build in IB, I’d like to have a progress bar, and text that gets updated, along with a cancel button.
Thanks in advance.