Đã hoàn thành

Itunes applescript: record 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 because, 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 less important than the first reason.)

*** Time schedule ***

There is no hurry. It would be nice if the project is completed somewhere during the summer.

*** 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, increase 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 a have better idea, suggestions are greatly appreciated.

Kĩ năng: Mac OS

Xem nhiều hơn: applescript record itunes, writing a song, summer programming, play my music video, music writing program, how to start writing a song, good writing music, good programming music, goal programming example, am track schedule, applescripts, video record, time record, record writing, music record, proxy videos, time schedule can work, video collection, metainformation, live record, background minute seconds music, program music store, minute background music, record music, minute seconds background music

Về Bên Thuê:
( 3 nhận xét ) Netherlands, Netherlands

ID dự án: #1638515

Được trao cho:


Hi, a few weeks ago I've done the similar work.

$350 USD trong 3 ngày
(0 Đánh Giá)

3 freelancer đang chào giá trung bình $383 cho công việc này


I take it this is the same project?

$450 USD trong 14 ngày
(2 Nhận xét)

Hi there I have attached a working demo to PM

$350 USD trong 14 ngày
(3 Nhận xét)