I'm trying to delete a track from a playlist in iTunes using only a partial name from the clipboard. He keeps giving me an error saying he can not find the clue. I'm pretty new to AppleScript, so I probably did something wrong. Any help would be appreciated! This is what I have until now.
set iTunesdelete to the clipboard Tell the application "iTunes" delete track (track whose name contains iTunesdelete) from the user's playlist "Current project AAA" tell him at the end
Alternately I have this, which does not give an error, but it does not do anything either.
set iTunesdelete to the clipboard in deleteTrack (iTunesdelete) Tell the application "iTunes" configure the path in (file tracks whose name begins with iTunesdelete) from the user's playlist "Current AAA Project" Set songFile to the location of the track. delete the Track tell him at the end Tell the "Finder" application to remove songFile end deletetrack Tell the application "iTunes" set the result in (file tracks whose name starts with iTunesdelete) repeat with t in the result my deletetrack end of repetition tell him at the end finish