閱讀918 返回首頁    go 人物


How to reset play count in iTunes 12.4?

After the update I am unable to reset the play count anyone know a work around or how to reset the play count?



Here is a short AppleScript to replace the missing reset plays feature. In addition it clears any skips, or bookmark position and the last played and skipped dates.

 

Copy and paste into the script editor, save it as LastPlayedNever in ~/Library/iTunes/Scripts. Select one or more tracks and call the script from the scripts menu in iTunes.

ScriptsIcon.png



-- LastPlayedNever - V1.0 - © Steve MacGuire - 2016-05-18

tell application "iTunes"

if selection is not {} then

set mySelection to selection

repeat with aTrack in mySelection

set played count of aTrack to 0

set played date of aTrack to missing value

set skipped count of aTrack to 0

set skipped date of aTrack to missing value

if aTrack is bookmarkable then set bookmark of aTrack to 0

end repeat

end if

end tell



tt2



Here is a short AppleScript to replace the missing reset plays feature. In addition it clears any skips, or bookmark position and the last played and skipped dates.

 

Copy and paste into the script editor, save it as LastPlayedNever in ~/Library/iTunes/Scripts. Select one or more tracks and call the script from the scripts menu in iTunes.

ScriptsIcon.png



-- LastPlayedNever - V1.0 - © Steve MacGuire - 2016-05-18

tell application "iTunes"

if selection is not {} then

set mySelection to selection

repeat with aTrack in mySelection

set played count of aTrack to 0

set played date of aTrack to missing value

set skipped count of aTrack to 0

set skipped date of aTrack to missing value

if aTrack is bookmarkable then set bookmark of aTrack to 0

end repeat

end if

end tell



tt2



Will the above work in Windows?



It worked!! Thanks turningtest2 - I just ran it from the DL folder - not sure about the "scripts menu"



For Windows see my script LastPlayedNever.

 

On the Mac if you create the scripts folder and save the script it in then you can access the script from the iTunes menu rather than firing up Finder or the Script Editor to locate it. See https://dougscripts.com/itunes/itinfo/asitbasics.php for details.

 

tt2



tt2, your scripts are awesome! Respect!



I'm not sure what I did wrong, but it appears to work when I select my song, then click the script menu and select LastPlayedNever.  But then after a few seconds, the play count reappears on the song....  I then run it a second time and it seems to stick.

 

Not sure why I have to run it a second time.  Minor inconvenience, but better than no option to reset at all.



Do you have iTunes Match?

 

tt2



No but I do have Apple Music, which is probably the same thing as far as what you are referring to.



I am using Apple Music and getting following error when running the script:

Line      135

Char:     5

Error:     Object doesn't support this property or method: 'AlbumArtist"



Hi, I've just made a minor tweak which should hopefully workaround that issue. Please download a new copy of the script and let be know how you get on. Unfortunately I cannot test against an active Apple Music subscription here. It may be that it will only work with locally stored items.

 

tt2



I think I'm missing something.  The script in the responses above still look the same as what I currently have.  Is there a link to the Mac version that I'm missing? 

 

I really appreciate your attempting to get this working for me!



The Mac version is listed at the top of this particular thread: Re: How to reset play count in iTunes 12.4?

The error message SJMAP mentioned would have been with the Windows version.

iTunes Match and Apple Music both have features for synchronizing plays & skips. It is possible these don't play well when the values are reset. Maybe that is why Apple removed the reset plays feature? Easier to remove than fix?

 

tt2



Ok, I had missed the post from SJMAP.  My bad.

 

By the way, I just specifically tried the script on an Apple Music song (Kind-Apple Music AAC audio file) that I added to My Music.  The songs I tested are in the cloud and have not been downloaded to my PC.  This script still reset the play count successfully.  On these, I only had to run the script once and it reset properly.

 

Songs that show as Uploaded in the Cloud Status have the issue where I have to run the script twice.  The first time wipes the Play Count, but then after a few seconds, the Play Count reverts back to the previous status.  I then have to run the script again and it sticks.

 

Songs that show as Purchased or Apple Music (Matched AAC audio file) are a bit hit/miss.  Sometimes the first run of the script works, other times it operates just like Uploaded and I have to run it a second time.  No rhyme or reason that I can determine why it works for some of these types of songs, but not others.

 

Just wanted to update you as to my findings regarding Apple Music.



I've got windows 10, and cant find the file area to put this in??   can you please explain in more detail?? Thx  I also went to your scripts LastPlayedNever

didn't help much.



最後更新:2017-09-29 07:53:49

  上一篇:go Lost original bill
  下一篇:go Switching countries