BUG: iTunes 10.5 / Lion DP4 can't retrieve data via AppleScript

Originator:tyler
Number:rdar://9650258 Date Originated:21-Jun-2011
Status:Open Resolved:
Product:iTunes Product Version:10.5 (27)
Classification:Serious Bug Reproducible:yes
 
Summary: 

When running iTunes 10.5 in Lion DP4, attempting to retrieve a track's artwork data via applescript or scripting bridge results in an error being thrown. When querying for other attributes, such as the number of artworks associated with the track or the format of the artwork, the data returns as expected. The artwork displays correctly in the "Now Playing" area of iTunes as well.

Steps to Reproduce:

1. Extract test track folders and AppleScript from attached archive. A track with manually added artwork should show preview artwork in the Finder, while a track with no artwork should show the default icon.

2. From iTunes 10.5 beta, select File -> Add to Library

3. Select the track "05 Heartbeat.mp3" from the "no artwork" folder and click "Open."

4. Navigate to the Music section under Library in iTunes.

5. Right click the added track's name in iTunes and select "Get Album Artwork."

6. With the track selected, open the attached AppleScript and click Run. Note that the returned result is {"error"}.

7. Return to iTunes, select File -> Add to Library

8. Select the track "07 Top Yourself.mp3" from the "artwork" folder and click "Open."

9. Navigate to the Music section under Library in iTunes.

10. Select the added track, and run the attached AppleScript again. Note that the returned result here is also {"error"}.

Expected Results:

{0, JPEG picture, "", false, «data [PICT resource information]»}

Actual Results:

{"error"}.

Regression:

This issue appears to only show up when running iTunes 10.5 in the Lion Developer Preview 4. When running iTunes 10.5 on Snow Leopard or iTunes 10.3.1 in Lion, the artwork query returns the expected result.

Notes:

The attached zip file contains the AppleScript used to test retrieval of the artwork data, along with test tracks that have both manually added artwork (the "artwork" folder) and artwork that needs to be downloaded from the iTunes Store (the "no artwork" folder).

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!