Itunes applescript: track time played per item

*** Goal ***

In Itunes each item (like a song or a video) has metainformation fields. One of those metafinformation fields is “year”. I would like to store in that field how much time the corresponding item has been played.

Unit of measurement should be 10 seconds. So for example, year=5 would mean the item has been played 50 seconds.

*** Background ***

I am organizing my videos in Itunes. I would like to track how long I have watched each video since, after some time, this becomes a good proxy for how much I like each video.

For my music collection, the field playcount gives this kind of information. However, this doesn’t work for videos for the following reasons.

(1) Playcount is only updated when you play an item till the end and I rarely watch videos till the end;

(2) Videos differ a lot in length. A playcount for a 20 minute video is much more important than a playcount for a 3 minute video. (But this reason is far less important than the first reason.)

*** Time schedule ***

There is no hurry. I hope to find someone in the next 30 days and it would be nice if the project is completed somewhere in the range july – september.

*** Programming idea? ***

I have no experience writing applescripts but I think the program I need should do approximately the following.

(1) Start running when Itunes is started.

(2) Every 10 seconds check if the item that is currently playing is the same as the item that was playing 10 seconds ago. If so, update the metainformation field “year” by 1.

(3) Stop running when Itunes is stopped.

(Ok, this doesn’t working properly if between those 10 seconds, you were playing something else. But I can live with that.)

However, if this is impossible for some reason or if you know something better, other suggestions are greatly appreciated.

Compétences : Mac OS

Voir plus : writing a song, play my music video, music writing program, how to start writing a song, how to find that i am for programming, good writing music, good programming music, goal programming example, am track schedule, applescripts, find a song, proxy videos, time schedule can work, video collection, metainformation, know something, someone good time, time range, track project, background minute seconds music, program music store, minute background music, project track, minute seconds background music, itunes music

Concernant l'employeur :
( 3 commentaires ) Netherlands, Netherlands

N° du projet : #1634805

1 freelancer is bidding on average $450 for this job


Hello, I'm a fulltime AppleScript Developer and have been for over 10 years. I have many scripts in use daily on over 300 user's macs on 3 different continents. I appreciate the need for script stability and reli Plus

450 $ USD en 14 jours
(4 Commentaires)