Wenn Sie die konvertierten Titel vorübergehend in Ihrer iTunes- Mediathek gespeichert haben, können Sie den Track mit AppleScript konvertieren, den Verweis auf den konvertierten Track entfernen und die konvertierte Datei schließlich an eine beliebige Stelle verschieben.
Normales AppleScript bietet wenig Funktionen für eine reibungslose Benutzeroberfläche. Das folgende Skript kann jedoch das tun, was Sie möchten. Fügen Sie es in den Skript-Editor (oder AppleScript Editor von Snowy) ein und speichern Sie es als "Anwendungspaket" ("Anwendung" auf Snowy). Um es zu verwenden, haben Sie Ihre Konvertierungseinstellungen ( Importeinstellungen ) in iTunes konfiguriert, wählen Sie einige Titel in iTunes aus und legen Sie einen Ordner in der gespeicherten Anwendung ab. Beachten Sie, dass neu konvertierte Dateien bereits vorhandene Dateien im abgelegten Ordner überschreiben (wenn ihre Namen identisch sind). Es ist wahrscheinlich am besten, leere Ordner zu löschen, wenn Sie nicht sicher sind, dass Sie Überschreibungen wünschen. Sie könnten sogar einige ID3v2-Tags aus dem Prozess holen (ich habe es in einigen Tests gemacht, aber es hängt davon ab, wasiTunes entscheidet sich dafür).
on run display dialog "Drop a folder on this application to convert iTune's selected tracks and place them the dropped folder." & return & return & "The converted files will be whatever is selected in iTunes “Import Settings”." with title "About" return -- Test invocation: "/tmp/convert_to_external" alias POSIX file result open end run on open theItems if length of theItems is 0 then display dialog "No items dropped? Only a single, plain folder should be dropped." with title "Error: Drop Only a Single Folder" return end if if length of theItems is greater than 1 then display dialog "Too many items have been dropped. Only a single, plain folder should be dropped." with title "Error: Drop Only a Single Folder" return end if set theItem to first item of theItems set info to info for theItem if not folder of info or package folder of info then display dialog "“" & POSIX path of theItem & "” is not a plain folder. Only a single, plain folder should be dropped." with title "Error: Drop Only a Single Folder" return else |convert iTunes selection into folder|(theItem) end if end open to |convert iTunes selection into folder|(folderRef) try do shell script "test -d " & quoted form of POSIX path of folderRef on error m display dialog "Destination (" & destinationForShell & ") not accessible?" & return & m return end try tell application "iTunes" set trackList to selection repeat with selectedTrack in trackList try set convertedTrack to my convertTrack(selectedTrack) set convertedFile to location of convertedTrack my deleteTrackReference(convertedTrack) -- only delete the iTunes ref, not the track's file my moveItemToFolder(convertedFile, folderRef) on error m tell me to display dialog m with title "Error During Conversion/Removal/Move" -- giving up after 30 end try end repeat end tell end |convert iTunes selection into folder| to convertTrack(aTrack) if class of aTrack is list then error "Must pass a single track." using terms from application "iTunes" set questionTimeout to 10 set conversionTimeout to 600 display dialog "About to start conversion of “" & name of aTrack & "”. Select a timeout in seconds for the conversion (conversion will auto-start in " & questionTimeout & " seconds):" default answer conversionTimeout with title "Conversion Time Limit" giving up after questionTimeout try set conversionTimeout to (text returned of result) as number end try set convertedTrack to missing value with timeout of conversionTimeout seconds -- conversion may take longer than the deafult 120 second AppleEvent RPC timeout try set convertedTrack to convert aTrack on error error "Error while converting track." end try end timeout if convertedTrack is not missing value then return first item of convertedTrack error "Abandoning track conversion after timeout." & return & m end using terms from end convertTrack to deleteTrackReference(aTrack) try tell application "iTunes" to set mainLibrary to ¬ first library playlist of (first source whose kind is library) on error error "Unable to find main library playlist object." end try using terms from application "iTunes" try set convertedTrackInMainLibrary to ¬ (first track of mainLibrary whose database ID is (get database ID of aTrack)) on error error "Unable to find track object in main library playlist." end try try delete convertedTrackInMainLibrary -- deletes the reference, not the actual file on error error "Unable to delete track from main library playlist." end try end using terms from end deleteTrackReference to moveItemToFolder(itemRef, folderRef) set itemPath to POSIX path of itemRef set folderPath to POSIX path of folderRef try do shell script "mv " & quoted form of itemPath & " " & quoted form of folderPath on error m error "Unable to move item (" & itemPath & ") to destination (" & folderPath & "):" & return & m end try end moveItemToFolder