おそらく多くのiPodユーザーとポッドキャストリスナーが1人で「ショーノート」を表示するという問題に直面しています。 ポッドキャストによっては表示されるものもあれば、表示されないものもあります。 問題は、iPodには実際に叫び声を表示する機能がなく、トラックの歌詞が表示されることです。 したがって、最愛のポッドキャストがmp3ファイルのID3タグに示されたototを追加することに気をつけた場合、満足し、気にしなかった場合、
耳をすくめるだけでイライラします。
または、ID3タグを自分で追加します。 iTunes for Windowsの
不幸なユーザーと一緒に、自分で使用するスクリプトを共有したいと思います。
スクリプト
JScriptで記述されており、COMを介してiTunesで動作し
ます 。 このSDKの説明をダウンロードする場合は、
こちらをご覧ください 。
うまくいけば、コード内のコメント。 進行状況を表示するために、処理されたトラックの割合が書き込まれるIEが起動されます。 実際、JScriptは通常のwin-formで動作することはできません。 インテリジェントユーザーは、WScript.Echo()を介してコンソールに出力するために、この瞬間をやり直すことができます。
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
// run itunes var ITTrackKindFile = 1; var iTunesApp = WScript.CreateObject( "iTunes.Application" ); var mainLibrary = iTunesApp.LibraryPlaylist; var tracks = mainLibrary.Tracks; var numTracks = tracks.Count; var numProcessed = 0; // create ie for showing progress var ie = WScript.CreateObject( "InternetExplorer.Application" , "ie_" ); ie.Navigate( "about:blank" ); ie.ToolBar = 0; ie.StatusBar = 0; ie.Left = 30; ie.Top = 30; ie.Width = 400; ie.Height = 200; ie.Visible = 1; // show progress ie. document .title = "Updating podcast show notes" ; var updateProgress = function (percent) { var textPercent = Math.round(percent * 100); ie. document .body.innerHTML = "<b>" + ie. document .title + "</b><br/><i>Progress " + textPercent + "%</i>" ; } // process tracks var i = numTracks; while (i != 0) { var currTrack = tracks.Item(i); // is this a file track and a podcast? if (currTrack.Kind == ITTrackKindFile && currTrack.Podcast) { // are lyrics set? if not we'll write description in lyrics try { var lyrics = currTrack.Lyrics; // write to lyrics only if lyrics are empty if (lyrics.match(/^[\s\n\r\t]*$/g)) { var descr2lyrics = currTrack.Name + "\n\n" + currTrack.LongDescription; currTrack.Lyrics = descr2lyrics; numProcessed++; } } catch (exception) { // catching dead tracks } } i--; updateProgress((numTracks-i) / numTracks); } ie. document .body.innerHTML = numProcessed + " podcasts processed.<br/>All Done!" ; * This source code was highlighted with Source Code Highlighter .
ダウンロードするこのスクリプトは、ファイルを2回クリックするか、コンソールから起動するという2つの方法で実行できます。
wscript inotes.js短所
もちろん、スクリプトは完璧ではありません。 最大の欠点は、毎回手で実行する必要があることです。 しかし、私はWindowsでこのようなものを見つけられなかったので、私はそれをそのまま投稿することにしました。そして、ハブの賢いユーザーはおそらくそれを改善するのを助けるでしょう。 私は頭の中で
WMIを介してiTunesの起動を監視するという考えしか持っていませんが、私の記憶に常にスクリプトがぶら下がっている可能性はあまり好きではありません。 さらに、この場合、スクリプトを実行するプロセスを十分に制御できないため、そのまま私に適しています。
最後に。 ポッドキャストが最も人気のあるプレーヤーで聴くために作成を最適化しない理由を理解していますが、なぜ大きなポッドキャスト端末が私のためにこれをしないのか理解しています。 ロシア最大の不便なポッドキャストリソースの1つであるEcho of Moscow。 さて、少なくとも
今では、ファイルを2つの部分に分割し
ていません。 また、各ポッドキャストの先頭から
Yahoo Pipesを介して「Echo of Moscow // Transmissions //」をカットできます。
また、盗聴に関するヒントやコツを共有するよう読者に勧めます。
Mac
ポピーの所有者については、ソリューションは検索で検索され、フォーラムでプラグインに会いましたが、プラグインを試すことができないため、リンクを提供しません。