when my Xcode project tries to execute a part of my script it gives this error:
a part of my script:
if name of theObject is "AOpen" then
-- afspeellijst kiezen, en tracks naar list zetten
tell application "iTunes" to set myOPlaylists to name of every playlist
set myOCPlaylist to (choose from list myOPlaylists) as string
tell application "iTunes"
set myOTracks to {}
set myCount to 1
repeat count playlist myOCPlaylist times
set myOTrack to name of track myCount of playlist myOCPlaylist
set myOArtist to artist of track myCount of playlist myOCPlaylist
set end of myOTracks to {myOTrack, myOArtist}
set myCount to myCount + 1
end repeat
end tell
-- alles naar tabel, list myPlaylist updaten
set contents of table view "AGekozen" of scroll view "AGekozen" of window "add" to myOCPlaylist
set myPlaylist to myOCPlaylist
end if)
I’ve already gotten this error often, but mostly with the command
display dialog "A Text" buttons AList default button AButton
But I’ve never have gotten this error while trying to get information from an application.
Now what can I do to solve my problem?
Thanx,
ief2