Me gustaría añadir que la fecha de lanzamiento para podcasts que he importado en iTunes, pero mi applescript es devolver un error en la fecha de objeto.
tell application "iTunes"
set theSelection to selection
if theSelection is not {} and (length of theSelection) is 1 then
set theTrack to item 1 of theSelection
log release date of theTrack as text
set release date of theTrack to date ("2011-12-23T08:00:00Z" as string)
refresh theTrack
end if
end tell
La línea set release date of theTrack to date ("2011-12-23T08:00:00Z" as string)
me da este error
error "Invalid date and time date 2011-12-23T08:00:00Z." number -30720
¿Cómo puedo hacer que la cadena 2011-12-23T08:00:00Z en un objeto date que applescript no se quejan?