Hi,
If I may comment on your posts, here’s what I thought when I read them:
On your first post, you had these codes:
set playingTxt to contents of text field "playingTxt" of window "idoControl"
set contents of playingTxt to "hey"
As I look at it, playingTxt is a variable of type string or Unicode text that you assigned the content of text field “playingTxt” of window “idoControl” to. Then you treated it like a text field, setting its contents to “hey”.
You cannot do it that way since playingText in your coding is treated as a variable, not a text field. If you want to refer to the text field, you would do it like this:
set contents of text field "playingTxt" of window "idoControl" to "hey"
It should work this way.
On your second post, there is something missing in your last code. Here, I assume again that songTxt is a variable of type string or Unicode text.
if the name of current track is not equal to songTxt and songTxt is not "" then
tell application "iTunes" to play track songTxt of playlist "Music"
set trackName to the name of the current track
set contents of text field "playingTxt"
--this is all within a tell statement referring to iTunes
else
Change the last code to:
if the name of current track is not equal to songTxt and songTxt is not "" then
tell application "iTunes"
play track songTxt of playlist "Music"
set trackName to the name of the current track
end tell
set contents of text field "playingText" of window "idoControl" to trackname
else
--add your other codes
That is if you want the text field to show the currently playing track. Please make sure that your tell iTunes block is ended with “end tell”. Also, note that there might be a need to use the block "using terms from application iTunes"block. Please note that this is not the exact code for “using terms from” as i think iTunes must be enclosed in quotes, but you get the idea?
I hope the above help even though it would have been better to see more of your codes.
Good luck.
archseed 