Hi,
Is it possible to use "osascript" from PHP? I'm trying it and it's not working. I've even tried saving my script as a file and running it from osascript, but no dice. Here's what I have:
[php]
$mp3s = shell_exec("/usr/bin/osascript get_tracks");
echo $mp3s;
[/php]
get_tracks just asks iTunes for the name of the current track. The script itself works fine, but calling it from PHP does not. Could it be that you have to be running osascript from the same user that's logged in, and perhaps PHP runs on the www user?
Any advice for how to get a print out of ALL (even non-itunes playing) mp3s on a system and show 'em on a web page?
Thanks,
gabe