PDA

Visualizza Versione Completa : iTunes... come trovo le tracce con i testi...



rwm59
24-06-06, 19:45
Hola,
dopo aver usati ( kingo avevi ragione tu , vale proprio la pena..) MPfreaker, che ricerca tutti i lyrics delle tracce automaticamente ( shareware sepso bene per chi ha un grande libreria) sto cercando di fare una playlist smart con i brani SENZA LYRICS (eh, libreria di 25 gb..);
ma non riesco perchè no se como cercare la condicione ( il campo ) relativo ai testi...
Alcuno sa come aiutarmi?

Grazie en anticipo....

kingofgames
23-07-06, 21:51
mmmm non ho capito molto bene cosa vuoi fare
ma perchè vuoi togliere i testi?
:???:

rwm59
24-07-06, 02:59
mmmm non ho capito molto bene cosa vuoi fare
ma perchè vuoi togliere i testi?
:???:

No... vorrei creare una smart playlist che raccolga tutti i brani con i testi. O il contrario....

kingofgames
24-07-06, 14:41
il testo di una canzone lo visualizzi premendo mela+I sulla canzone evidenziata
ma non ho capito lo scopo della tua playlist
che ipod hai? :???:

rwm59
24-07-06, 20:43
il testo di una canzone lo visualizzi premendo mela+I sulla canzone evidenziata
ma non ho capito lo scopo della tua playlist
che ipod hai? :???:


.. mi spiego malissimo.. allora , su molti brani, ho inserito i testi ( anche dopo l'uso di mpFreaker, grazie!) ma, ne rimangono parecchi senza;
calcola che o circa 3000 brani.... quindi, cercavo di creare una smart playlist che facesse la selezione da sola.
ma nei criteri di selezione delle smart non trovo uno che identifica se c'è in un brano, il testo o no.
Per le cover, ad esempio, uso uno script che ho trovate su www.http://www.dougscripts.com/itunes/index.php ( sito grande per chi smanetta su iTunes)...
Ed anche su smartplaylist.com non ho trovato granchè....

Hai qualche idea ? :???:

avrobay
24-07-06, 21:01
Per le cover, ad esempio, uso uno script

Mi dai l'indirizzo di quello specifico script per favore?

pierino
25-07-06, 00:46
Quest'idea della playlist era venuta anche a me;non si può fare richiesta direttamente alla Apple? :???:

rwm59
25-07-06, 01:28
Per le cover, ad esempio, uso uno script

Mi dai l'indirizzo di quello specifico script per favore?
Ok,
dovrebbe essere questo...
http://www.dougscripts.com/itunes/scripts/ss.php?sp=albumswithoutartwork
io l'ho rinominato, in italiano... :oops:

Se sapessi modificare uno script si potrebbe provare a fargli cercare lyrics o no lyrics....
PS : è tutto free naturalmente!

avrobay
25-07-06, 02:24
Se sapessi modificare uno script si potrebbe provare a fargli cercare lyrics o no lyrics....
PS : è tutto free naturalmente!

Credo che non sia impossibile. Andrebbe aperto un topic nell'area dedicata questo nel nostro forum.
Intanto incollo il codice magari a qualcuno viene voglia di ragionarci...
per stasera io invece vado a dormire! :wink:



global newContents
tell application "iTunes"
set theP to library playlist 1
set checked_these to {}
set List_With_No_Art to {}
set List_With_Partial_Art to {}

display dialog "The process of wrangling each album and its tracks may take some time." & return & return & "If for some reason you wish to cancel this process you must Force Quit \"Albums Without Artwork\" by pressing" & return & " Option + Command + Escape." buttons {"Cancel", "Proceed..."} default button 2 with icon 1

-- get filename
set file_name to (choose file name with prompt "Enter a name for the text file that will be created:" default name "Albums Without Artwork")
if file_name is false then error number -128 -- cancel
if file_name as string does not end with ".txt" then set file_name to ((file_name as string) & ".txt")

set mylimit to my get_input("", 4)

with timeout of 3000 seconds
set ev to (get album of tracks of theP)
set every_album to {}
repeat with a in ev
set a to a as string
considering case
if every_album does not contain a and a is not "" then
copy a to the end of every_album
end if
end considering
end repeat
end timeout

repeat with t from 1 to count of items of every_album
set theArt to ""
with timeout of 60000 seconds
set thisAlbum to item t of every_album
set all_albums_tracks to (get tracks of theP whose album is thisAlbum)
set nmtrks to (count of items of all_albums_tracks) -- used below also
if nmtrks is greater than mylimit then

set c to 0 -- counter
repeat with a from 1 to count of items of all_albums_tracks
try
if (exists artworks of item a of all_albums_tracks) then set c to c + 1
if theArt is "" then set theArt to (get artist of item a of all_albums_tracks)
end try
end repeat
if c = 0 then
copy ("\"" & thisAlbum & "\" - " & theArt & return) to the end of List_With_No_Art
else
if c is less than nmtrks then copy ("\"" & thisAlbum & "\" - " & theArt & return) to the end of List_With_Partial_Art
end if

end if -- my limit
end timeout

end repeat

set preamb to "Albums "
if mylimit is not 0 then
set s to "s"
if mylimit is 1 then set s to ""
set preamb to preamb & "[of " & (mylimit as string) & " track" & s & " or more] "
end if
set newContents to preamb & ("Without Artwork" & return & return)

if List_With_Partial_Art is not {} then
set newContents to newContents & "These albums contain SOME tracks with artwork:" & return & return & (List_With_Partial_Art as text) & return & return
end if
if List_With_No_Art is not {} then
set newContents to newContents & "These albums have NO tracks with artwork:" & return & return & (List_With_No_Art as text) & return & return
end if

try
copy (a reference to (open for access file_name with write permission)) to fileRef
write newContents to fileRef
close access fileRef
on error errx number errNum
close access fileRef
display dialog "There has been an error creating the file:" & return & return & errx & return & "error number: " & errNum buttons {"Cancel"}
end try
tell me to activate
beep
beep
delay 1
beep
set dMes to return & return & "Would you like to open the text file with TextEdit?"
set myEnding to (display dialog "Done!" & dMes buttons {"Done", "Yes"} default button 2 with icon 1 giving up after 16)
if gave up of myEnding is true or button returned of myEnding is "Yes" then
tell application "TextEdit"
activate
try
open (file_name as alias)
on error errMs
display dialog errMs buttons {"Cancel"}
end try
end tell
end if -- button is "Done"

end tell

to get_input(addenda, defval)
tell me to activate
copy (display dialog "" & addenda & ¬
"Ignore albums that contain this many tracks or fewer:" default answer ¬
defval buttons {"No! Every album counts!", "Limit to my number"} default button 1) to result_of_dd
if button returned of result_of_dd starts with "No" then return 0
copy text returned of result_of_dd to text_returned
--check for a whole number
try
(text_returned as integer)
on error
tell me to get_input("Enter only numbers..." & return & return)
end try
return text_returned as integer
end get_input