i get the following error when i try to get the code below to compile, the error was: “closeartwork.applescript:8: Expected end of line, etc. but found command name. (-2741)”
here is the code:
on mouse down theObject event theEvent
if name of theObject is "closeBartwork" then
set image of image view "closeArtwork" of window "artworkWindow" to load image "DownClose"
if name of theObject is "closeBlyric" then
set image of image view "closeLyric" of window "lyricsWindow" to load image "DownClose"
if name of theObject is "closeBlyricm" then
set image of image view "closeLyricm" of window "lyricsWindow1" to load image "DownClose"
end if
end mouse down
on mouse up theObject event theEvent
if name of theObject is "closeBartwork" then
set image of image view "closeArtwork" of window "artworkWindow" to load image "Close"
tell window "artworkWindow" to hide
if name of theObject is "closeBlyric" then
set image of image view "closeLyric" of window "lyricsWindow" to load image "Close"
tell window "lyricWindow" to hide
if name of theObject is "closeBlyricm" then
set image of image view "closeLyricm" of window "lyricsWindow1" to load image "Close"
tell window "lyricWindow1" to hide
end if
end mouse up
thxs!