sharpe11
Aktives Mitglied
Thread Starter
- Dabei seit
- 03.04.2005
- Beiträge
- 170
- Reaktionspunkte
- 9
Ich habe vor, Filme aus EyeTV in einen speziellen Ordner zu exportieren. Diese Exporte sollen dann mit einer Folder Action mit Turbo.264 codiert werden.
Soweit klappt es auch.
Dann, wenn die App Turbo.264 fertig ist, soll die Quelldatei ( meist ein *.mpg) gelöscht werden bzw. in den Papierkorb verschoben werden.
Mein Script macht alles bis auf löschen.
Ich bitte um Eure Hilfe
Hier mein Script:
on adding folder items to this_folder after receiving added_items
tell application "Turbo.264 HD"
activate
set items_added to get the (count of added_items) + 1
set i to 1
repeat until i = items_added
add file (item i of added_items) exporting as custom with custom setting "MyCustomPreset"
set i to i + 1
end repeat
encode
repeat while isEncoding
delay 5
end repeat
tell Application "Turbo.264 HD" to quit
end tell
tell application "Finder"
if (name extension of added_items) is "mpg" then
move to trash
end if
end tell
end adding folder items to
Soweit klappt es auch.
Dann, wenn die App Turbo.264 fertig ist, soll die Quelldatei ( meist ein *.mpg) gelöscht werden bzw. in den Papierkorb verschoben werden.
Mein Script macht alles bis auf löschen.
Ich bitte um Eure Hilfe
Hier mein Script:
on adding folder items to this_folder after receiving added_items
tell application "Turbo.264 HD"
activate
set items_added to get the (count of added_items) + 1
set i to 1
repeat until i = items_added
add file (item i of added_items) exporting as custom with custom setting "MyCustomPreset"
set i to i + 1
end repeat
encode
repeat while isEncoding
delay 5
end repeat
tell Application "Turbo.264 HD" to quit
end tell
tell application "Finder"
if (name extension of added_items) is "mpg" then
move to trash
end if
end tell
end adding folder items to