Re: iTunes script problems
Re: iTunes script problems
>> According to the AS dictionary: search v : search a playlist for tracks matching the search string. Identical to entering search text in the Search field in iTunes.
>>
>> If the search was identical then the only songs that would be visible, and therefor the only songs that would play, would be the ones that were searched.
The search itself is identical. The same search strings will find the same songs. What's not identical is what happens with the search results. In the user interface the search results change the tracks visible in the user interface to the search results.
In the scripting interface, via appleScript, you get a list containing references to those tracks. In this case the scripting interface should not interfere with the user interface and it doesn't. In your script you want to search for the purpose of playing songs, but there could be hundreds of other reasons to search for tracks in iTunes that don't involve the user interface and shouldn't interfere with the user.
From a script you can then use the search results in a variety of ways, including putting them into a play list and playing them.
Separation of the user interface and scripting interface is a fundamental concept for AppleScript.
ES _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden