Vorrei aggiungere la data di rilascio ai podcast che ho importato in iTunes, ma il mio applescript restituisce un errore sull'oggetto data.
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 riga set release date of theTrack to date ("2011-12-23T08:00:00Z" as string)
mi dà questo errore
error "Invalid date and time date 2011-12-23T08:00:00Z." number -30720
Come faccio a rendere la stringa 2011-12-23T08: 00: 00Z in un oggetto data di cui il applescript non si lamenterà?