2010-07-22 16 views

Respuesta

9

No me puedo atribuir el mérito de haber escrito esto, levanté el código de response to a post en los foros de MacRumors.

tell application "Finder" 
    set Names to paragraphs of (read (choose file with prompt "Pick text file containing track names")) 
    repeat with nextLine in Names 
    if length of nextLine is greater than 0 then 
     --Do something with the next name, which is stored in "nextLine" 
    end if 
    end repeat 
end tell 

Código Original acreditamiento a HexMonkey en el foro de MacRumors.

+3

No hay necesidad de decir la Finder para hacer estas cosas. Debería sacar todo ese código del bloque de búsqueda del Buscador. Applescript puede manejar ese código y el Buscador a menudo está ocupado con otras tareas, por lo que incluso puede ralentizar el código. – regulus6633

+0

Bueno saberlo. Realmente debería aprender AppleScript uno de estos días. :PAG – kdmurray

Cuestiones relacionadas