Getting a total play count

I'm obviously a guy with nothing better to do than this... Is there an easy way to get a total play count (for all songs).
I make a playlist of my top played every few months, save it, then reset the play count and start again, but would like to do the same thing after a certain number of tracks have been played rather than after every 6 months. It's not particularly important but its nagging at me.
I presume there must be a 'database' somewhere in the iTunes folder where all this info is stored.
Mike

It's not exactly what you're looking for, but this script may be useful:
http://www.dougscripts.com/itunes/scripts/ss.php?sp=totalplaycount
Search for "Play count" (including the hyphens) at dougscripts.com to find more scripts regarding play counts.
M

Similar Messages

  • TOTAL Play Count... possible?

    This might be a strange question, but I am just curious. I know that when I plug my iPod into my computer and open iTunes, the play count comes up for each song. I was wondering if it is possible to get the total play count from my iPod... just a single number for the number of times I've played EVERY song. I have a "retro" iPod (iPod photo... not sure what generation) so I'm not sure if current programs would work with it, but I can try it. BTW, I have iTunes 9.2 if that matters. Thank you!

    No. However, it is easy enough to paste your library into Excel or some other spreadsheet (simply make sure the columns you want are visible in iTunes, then copy and paste) from which you can do all the sums and statistics you want.

  • How to get a total record count before grouping?

    I need to group a report on a formula that does roughly the following:
    [record count] / ( [total record count] / 20 )
    What this acheives is to label each record with a number of 1 - 20 which I want to group on. Getting this figure is the easy part, what is not working is the fact that I cannot group from a formula that is calculated after grouping. I overcame a portion of this by using "Whilereadingrecords" (rather than "count", running totals, or while printing records) to acheive a record count.
    I can't figure out how to get a total record count done before grouping. Is there a way to do this with "WhileReadingRecords"?? Is this even possible?
    Thanks
    John

    Hi John, 
    The order of how Crystal does things dictates the order of which features you can use.  Crystal has a two pass method.  In the first pass it does things like passing the query, grouping, summarizing.  In the second pass it does formulas, formatting, etc. 
    Unfortunately Crystal does the Grouping before summarizing so what you want to do can't be done in Crystal.  The best way to get around this to either create a SQL Command or view/stored procedure that will do the summarizing for you.  Then in the report you can use it. 
    Hope this helps,
    Brian

  • How to Get the Total Page Count in XML Reports?

    Hi All,
    we have a requirement where we have to print Page X of Y(Total Page Count of the document).
    But whenever my header group resets the total count is also reseting.
    for e.g.
    I m getting the page 1 of 4, page 2 of 4, page 3 of 4, page 4 of 4 for my first record.
    same way i am getting page 1 of 3 ,page 2 of 3, page 3 of 3 for my second record.
    But the requirement is to display page 1 of 7, page 2 of 7, page 3 of 7, page 4 of 7 for the first header record.
    And page 5 of 7, page 6 of 7 and page 7of 7 for the second record.
    Is there any way to achieve this?
    Thanks,
    Sachin

    You might have better luck getting an answer here:
    BI Publisher

  • How to get the total record count in ODI

    Hi
    I have the interface the are file to DB.
    The format is like this..
    HEADER
    DETAIL
    TRAILER
    Now will write the contains of file to DB,
    But i have to insert the total count ie numberof record written from file to DB in my Trailer record.
    can you tell me how can i get the total count of records in file and write it to trailer?
    Also, I want the interface to rollback the data if something fails will loading the data from file., ie. if there are 100 records in file and 50 got transfer and something fails i want to rollabck the 50 records from DB.???
    Thanks :)

    Hi
    You can design a flow for Full load flow and incremental flow from flat file to Table.
    Create a table at target database like.. (create table with last_execution and palce the V_FULL_LOAD value and LAST_EXECUTION_DT columns in last_execution table)
    Add faltfile as table in model, create a variable as V_FULL_LOAD and make sure that the default values is 01-01-1900
    Create one more variable like V_LAST_EXECUTION_DATE (in this variable write a case statement that if V_FULL_LOAD value is 'Y" then full load should happen and same time you should check that V_FULL_LOAD column is balnk then write insert statment else write update statement to update last_execution_dt column, similar for 'N')
    please provide your *personal mail ID*, i will send a doc file realted to your query.
    we have to tables present in work repository (SNP_STEP and STEP_LOG tables) using tables we can get how many records are inserted/updated and we can find how many records are not transfer and gor error.
    Thanks
    Phani

  • How to get the total record count for the report

    Hi,
    How can I get count of the total records shown in the report. When we set the report attributes, we have an option "Set Pagination from X to Y of Z"
    Does anyone know how can I get the Z value from APEX variables.
    I know we can use that query and get the count but I just want to know how we can use APEX Variables effectively.
    Thanks in advance.

    You write a loop, something like this:
    Go_block('B1');
    If not form_success then
      Raise Form_Trigger_failure;
    End if;
    First_Record;
    If not form_success then
      Raise Form_Trigger_failure;
    End if;
    Loop
      If :system.record_status in('CHANGED','INSERT') then
        -- modify the record here--
      End if;
      Exit when :System.Last_Record = 'TRUE';
      Next_Record;
    End Loop;
    First_Record;But be very careful-- If your block can fetch a large number of rows, (over 100), this loop can take a long time, and you should not use this method. The loop will continue fetching more rows from the database until all rows satisfying the query are retrieved.

  • How can I get a total page count of a PDF before placing every page in the PDF?

    Before the [long] spiel, I'm using javascript in InDesign CS3.
    I'd like to create a script that places a multiPage PDF in any number of different impositions. (saddle stitch, 4up signatures, 16up signatures etc.)
    I've easily created a script that iterates through a PDF and places it into a new document as (4,1|2,3), (8,5|6,7) etc, which works for printing in duplex, folding each page in half, and gluing the resulting spines to make a simple thick book (for PDFs with more than, say, 64 pages).
    However, the next step is to re-write the script to create a saddle stitch document (16,1|2,15), (14,3|4,13) ... (10,7|8,9). For this I need to know how many pages there are in the PDF before I start placing the PDF pages, and then making the new document [int((PDFpages+3)/4)] pages long.
    Is there a simple way to get the count of PDFpages without going through a loop and placing the next page from the PDF until the placed page number equals the first page number?
    This way seems wasteful:
    var totPDFPages = 1;
    app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    var pdfFirstPage = myPDFPage.pdfAttributes.pageNumber;
    while (doneCounting == false) {
    totPDFPages += 1;app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    if (myPDFPage.pdfAttributes.pageNumber == pdfFirstPage) {
    totPDFPages -=1;
    doneCounting = true;
    alert("PDF has " + totPDFPages + " pages!");exit();
    myPDFPage.remove();
    NB. Javascript above *hasn't* been run, but should look similar once debugged.
    The only thing I've though of to relieve the sheer duplication of placing the PDF twice (once for the count, and once for the imposition), is to create an array of impoPages[counter]=myPDFPage, and then shuffle the pages referenced by the array to the correct sheet and position.
    It'd be much easier to be able to assign pageCount = File(srcPDF).pageCount !!!
    Thanks for any help/tips or even a simple "What are you smoking, man!?"
    Cheers,
    Jezz

    this will get almost all pdf pages count.
    jxswm
    function getPDFPageCount(f){
      if(f.alias){f = f.resolve();}
      if(f == null){return -1;}
      if(f.hidden){f.hidden = false;}
      if(f.readonly){f.readonly = false;}
      f = new File(f.fsName);
      f.encoding = "Binary";
      if(!f.open("r","TEXT","R*ch")){return -1;}
      f.seek(0, 0); var str = f.read(); f.close();
      if(!str){return -1;}
      //f = new File(Folder.temp+"/123.TXT");
      //writeFile(f, str.toSource()); f.execute();
      var ix, _ix, lim, ps;
      ix = str.indexOf("/N ");
      if(ix == -1){
        var src = str.toSource();
        _ix = src.indexOf("<< /Type /Pages /Kids [");
        if(_ix == -1){
          ps = src.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
          if(ps == null){
            ps = src.match(/obj <<\\n\/Type \/Pages\\n\/Count (\d+)\\n\/Kids \[/);
            if(ps == null){
              ps = src.match(/obj\\n<<\\n\/Type \/Pages\\n\/Kids \[.+\]\\n\/Count (\d+)\\n\//);
              if(ps == null){return -1;}
              lim = parseInt(ps[1]);
              if(isNaN(lim)){return -1;}
              return lim;
            lim = parseInt(ps[1]);
            if(isNaN(lim)){return -1;}
            return lim;
          lim = parseInt(ps[1]);
          if(isNaN(lim)){return -1;}
          return lim;
        ix = src.indexOf("] /Count ", _ix);
        if(ix == -1){return -1;}
        _ix = src.indexOf(">>", ix);
        if(_ix == -1){return -1;}
        lim = parseInt(src.substring(ix+9, _ix));
        if(isNaN(lim)){return -1;}
        return lim;
      _ix = str.indexOf("/T", ix);
      if(_ix == -1){
        ps = str.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
        if(ps == null){return -1;}
        lim = parseInt(ps[1]);
        if(isNaN(lim)){return -1;}
        return lim;
      lim = parseInt(str.substring(ix+3, _ix));
      if(isNaN(lim)){return -1;}
      return lim;

  • Getting back my play counts

    i have just bought myself a new 27" iMac and have simply added all my old songs from my external into my new itunes, i didn't import any of the playlists as i'm not too bothered about them. However all of my placounts have been reset, i then tried to 'import playlists' using the old .xml file from my old library but it didn't get me my playcounts back.
    Is there any way of acquiring these back without having to start my new iTunes library again? Basically i'm looking for the simplest way of doing this short of going back to my old library as my old iBook is very slow and therefore tiring to work with.
    Many thanks.

    Ratings and playcount are not stored as tags in the music files themselves so adding the files to a new library will not recover these. Note, "iTunes Music Library.xml: This file contains some (but not all) of the same information stored in the iTunes Library file." in Jolly Giant's second link about libraries. I'm not sure how this applies to ratings and playcount.

  • How to I get my play counts off my iPod onto my new mac?

    I have all the music in my iTunes but before I re-sync I'd like to get my play count file off my ipod and import it into iTunes?
    Anyone help me please?

    You should have copied the complete iTunes Library, including the iTunes Library.itl file, which, as far as I know, contains all the Play Counts from the existing (old) iTunes and pasted that into your new computer.
    Again, as far as I understand it, the total Play Count is not held on the Classic. If it was, it would not include plays within the iTunes Library. All the iPod does is remember how many plays since the last sync and tell iTunes to increase the Play Count by that number.

  • ITunes play count

    I'm wondering if there is a way to get the play-count of songs in iTunes just for a specific week? I don't want to reset my total play counts every week, but I also keep statistics about which songs I listen to every week. Hence, it would be highly useful to be able to see what I played in my iTunes, without having to write it down on paper every time I played a new song.
    Is there a way to do this?

    First - thanks for the confirmation. At least now I know that this can't be done, at least not at the present time. Perhaps I could hope that a "reset-able" play-counter, separate from the total play count, is something that might show up in later versions.
    As for taking things too seriously...yes, maybe I am, but this is my idea of fun. I've done this for more than 10 years now, and being able to go back and see what I listened to at certain points in time is more fun than it is work. That, of course, doesn't stop me from wanting to simplify the task of counting songs

  • How can I find the total word count in my entire Indesign CS3 document?

    I have a book that consists of 10 different files and many many different text boxes. I need to find out what the total word count is for the entire book. Is there a simple way to do this, or do I have to copy and paste all the text from InD into a word file to get the number? Your help is much appreciated.

    This AppleScript will get the total word counts of a folder of ID files—it shouldn't be too hard to convert to JavaScript if you are not using OSX:
    tell application "Finder"
    activate
    set myFolder to choose folder with prompt "Select the folder containing the files to count"
    set myFiles to every file of folder myFolder whose file type is "IDd5"
    end tell
    tell application "Adobe InDesign CS3"
    set wordcounts to {}
    set total to 0
    repeat with j from 1 to (number of items in myFiles)
    open item j of myFiles
    tell active document
    tell every story
    set wordcounts to wordcounts & (count every word)
    end tell
    set totalstories to count every item of wordcounts
    repeat with i from 1 to totalstories
    set total to total + (item i of wordcounts)
    end repeat
    close
    end tell
    end repeat
    display dialog "The documents in the selected folder have a total of " & totalstories & " stories, and " & total & " words"
    end tell
    ========================================
    If you just want the active document's count it would be:
    tell application "Adobe InDesign CS3"
    tell active document
    set wordcounts to {}
    tell every story
    set wordcounts to wordcounts & (count every word)
    end tell
    set total to 0
    set totalstories to count every item of wordcounts
    repeat with i from 1 to totalstories
    set total to total + (item i of wordcounts)
    end repeat
    display dialog "Total words in all " & totalstories & " stories: " & total
    end tell
    end tell

  • Play Count and i tunes, doesn't add the count correctly

    How do I get all my play counts on iTunes.
    It seems to only list the play count from my first Ipod only.
    I have 6 Ipods all sync' d with the same I Tunes?

    My iphone's play counts not ever included in itunes play count - my ipod 5th gen is fine. It is very annoying as I now listen mostly to iphone and there is no record of what i have listened to.

  • Query "Total Page Count"

    I have a HP Deskjet F4400 printer, I am running windows 7. I would like to get the "Total Page Count" from the printer. Is there a way to query this data from this printer?

    Post Author: V361
    CA Forum: General
    You could try creating a formula, for example
    WhilePrintingRecords;PageNofM
    and use the formula, hopefully, CR will be able to calculate the correct page count.

  • My brother's play counts by mistake!

    I wanted to recharge my brother's ipod touch but i forgot that he already synced it to my itunes, and now i have his play counts added to mine, and there some songs that are played 2500 times !!
    is there any way i can get my old play counts back??
    p.s. i still have the real play counts on my ipod. is there any file i can use?
    thank you in advance..

    Connect it to the computer with your library and sync it.
    If you are sharing a computer, hold SHIFT while launching iTunes and point iTunes to the library for yourself, then connect the device and sync.

  • L can not find my playlist,play count, etc. on my new macbook itunes

    I have recently purchased a macbook. i have about 22G of music oon my external hard drive. I have moved about 6G of music from my external HD to my macbook. I can not figure out how to get my playlist, play counts and ratings on the macbook. I do not want to add all of my original itune music 22G because i will be away with my laptop and i need the space for other things. I am not able to bring the External HD. I hope someone can help me with this. thanks

    To transfer your iTunes metadata (tags, playcounts, playlists, etc) you need to locate and transfer the iTunes Music Library file from the original computer to the MacBook.
    The easiest way to do that is to export the iTunes Library data as an XML file, email to yourself, and save it on the MacBook's desktop.
    Now open iTunes and from the file menu, select Import, and navigate to the xml file, and select. This will add all of the data you are looking to put on the MacBook. However, you will get all of the songs - not just those that were added to the MacBook's hard drive. These will have the dreaded next to the name. If you can live with this, this is the easiest way to add your metadata.
    Lita

Maybe you are looking for