Displaying album art roadblock
Thursday, August 10, 2006 5:12:30 AM
I intended the PHP script to exec() a call to osascript (Manual Page For osascript(1)) which in turn calls an AppleScript to wrangle the photos from iTunes.
Though I'd swear it was working at first, it doesn't seem to be now. The PHP can still call for current track info as that is returned to stdout, but calling for modifications to the file system, saving the artwork data, doesn't. It runs without error, and without output.
But, here's the *real* gotcha: Even though it runs as expected from within Script Editor, the AppleScript that retrieves and saves the artwork data will not work from the AppleScript menuextra!
In the immortal words of Han Solo, "That's not fair."
Next step: Test running the AppleScript as an application that saves all album art in one pass, instead of as they're asked for by the PHP script.
Though I'd swear it was working at first, it doesn't seem to be now. The PHP can still call for current track info as that is returned to stdout, but calling for modifications to the file system, saving the artwork data, doesn't. It runs without error, and without output.
But, here's the *real* gotcha: Even though it runs as expected from within Script Editor, the AppleScript that retrieves and saves the artwork data will not work from the AppleScript menuextra!
In the immortal words of Han Solo, "That's not fair."
Next step: Test running the AppleScript as an application that saves all album art in one pass, instead of as they're asked for by the PHP script.







