I am helping do some GUI changes to an application. I need to make the play/pause button change its alternate graphic depending if itunes is playing or paused. I have it so it changes it main image but not its alternate. This line seems to kill it.
Yet this line right above it works fine:
What is wrong with the first of those code sets? It compiles fine just hangs when it goes to run that line. I remove that first line and it runs fine, just without alternate icons.
Code:
set alternateimage of button "play" of mainWindow of myApp to image "pauseclicked.tif"
Code:
set image of button "play" of mainWindow of myApp to load image "pause.tif"
set image of button "play" of window "miniMainWindow" to load image "pause.tif"
What is wrong with the first of those code sets? It compiles fine just hangs when it goes to run that line. I remove that first line and it runs fine, just without alternate icons.