popup button
popup button
- Subject: popup button
- From: peter <email@hidden>
- Date: Fri, 11 Apr 2003 12:47:56 +0200
does anybody know why a popup button would stop working?
I don't remember changing anything in my script or in the popup's
properties
it worked fine but now all I get are "NSReceiverEvaluationScriptError:
3 (1)" errors
every time I try to select a menu item
btw. the button resides in a drawer of an applescript studio document
based application
As usual, I have probably done something really daft......
thanks for any suggestions
Peter
here is my script:
on choose menu item theObject
if the name of theObject is "stars" then
set theImage to load image "transparent"
set image of image view "backgroundimage" of window "main" to theImage
set image of image view "tabbackground1" of tab view item "editor" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground2" of tab view item "files" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground3" of tab view item "help" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground4" of tab view item "web" of
tab view "tabs" of window "main" to theImage
else if the name of theObject is "stars" then
set theImage to load image "windowtest"
set image of image view "backgroundimage" of window "main" to theImage
set image of image view "tabbackground1" of tab view item "editor" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground2" of tab view item "files" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground3" of tab view item "help" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground4" of tab view item "web" of
tab view "tabs" of window "main" to theImage
else if the name of theObject is "nature" then
set theImage to load image "illustrated leaf"
set image of image view "backgroundimage" of window "main" to theImage
set image of image view "tabbackground1" of tab view item "editor" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground2" of tab view item "files" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground3" of tab view item "help" of
tab view "tabs" of window "main" to theImage
set image of image view "tabbackground4" of tab view item "web" of
tab view "tabs" of window "main" to theImage
end if
end choose menu item
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.