We're updating the issue view to help you get more done. 

OSX:Error when unable to find track in iTunes

Description

10/06/2015 01.52.51:ChST:com.jthink.songkong.ituneshelper.OSXUpdateItunesWithChanges:addEditedTrack:WARNING: Unable to add edited tracks:iTunes got an error: Can’t get track 1 of playlist 1 whose persistent ID = "F1A68AD90AA66648".
javax.script.ScriptException: iTunes got an error: Can’t get track 1 of playlist 1 whose persistent ID = "F1A68AD90AA66648".
at apple.applescript.AppleScriptEngine.evalScript(Native Method)
at apple.applescript.AppleScriptEngine.eval(AppleScriptEngine.java:368)
at apple.applescript.AppleScriptEngine.eval(AppleScriptEngine.java:339)
at com.jthink.songkong.ituneshelper.OSXUpdateItunesWithChanges.addEditedTrack(OSXUpdateItunesWithChanges.java:312)
at com.jthink.songkong.ituneshelper.OSXUpdateItunesWithChanges.analyseFiles(OSXUpdateItunesWithChanges.java:253)
at com.jthink.songkong.ituneshelper.OSXUpdateItunesWithChanges.updateItunes(OSXUpdateItunesWithChanges.java:178)
at com.jthink.songkong.ituneshelper.UpdateItunesWithChanges.call(UpdateItunesWithChanges.java:193)
at com.jthink.songkong.ituneshelper.UpdateItunesWithChanges.call(UpdateItunesWithChanges.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
10/06/2015 01.52.51:ChST:com.jthink.songkong.ituneshelper.OSXUpdateItunesWithChanges:addEditedTrack:SEVERE: Script Is:tell application "iTunes"
set output to ""
set new_playlist to get first user playlist whose id is 371
set matchtrack to get first track in playlist 1 whose persistent ID is "F1A68AD90AA66648"
if matchtrack is not {} then
duplicate matchtrack to new_playlist
else
set nexttrack to (add(POSIX file ( get "/Users/gramps/Musicalia/Bob Dylan/Shot of Love/08 - In the Summertime.m4a") as alias) to new_playlist)
end if
return output
end tell

Environment

None

Status

Assignee

Unassigned

Reporter

Paul Taylor

Labels

None

Forum Username

GrampsAudio

os

None

Components

Fix versions

Affects versions

3.15

Priority

Blocker