pinkconverse
Aktives Mitglied
Thread Starter
- Dabei seit
- 27.07.2006
- Beiträge
- 177
- Reaktionspunkte
- 5
hi, vielleicht gibts es hier user die auch von onlinetvrecorder filme aufnehmen lassen und die dann (mir die einzig bekannte methode) per terminal mit dem prog. otrdecoder konvertieren.
da mir dass nach einiger zeit recht am nerv ging, ständig alles im terminal per hand einzutragen, hab ich mir dazu ein skript geschrieben das ich hier mal poste (verzeiht meine freiheit )
also hier das skript:
-------------------------------------------------------------------------------------
set theFile to choose file with prompt "This script converts otr-files"
set oneFile to POSIX path of theFile
set toConvert to "-i " & oneFile
set theUser to "-e Username" -- muss natürlich angepasst werden
set thePasswd to "-p Password" -- muss auch angepasst werden
set theLocation to "-o ~/Movies/" -- kann ebenso angepasst werden
set theCommand to "otrdecoder " /* vorausgesetzt otrdecoder liegt in /bin/ */
tell application "iTerm"
do shell script theCommand & toConvert & space & theUser & space & thePasswd & space & theLocation & space
end tell
display dialog "Convert finished" buttons {"delete otr-file", "ok"} default button 1
if button returned of result contains "delete otr-file" then
tell application "Finder"
move theFile to trash
empty the trash
end tell
end if
-------------------------------------------------------------------------------------
viel spass damit
lg loco
da mir dass nach einiger zeit recht am nerv ging, ständig alles im terminal per hand einzutragen, hab ich mir dazu ein skript geschrieben das ich hier mal poste (verzeiht meine freiheit )
also hier das skript:
-------------------------------------------------------------------------------------
set theFile to choose file with prompt "This script converts otr-files"
set oneFile to POSIX path of theFile
set toConvert to "-i " & oneFile
set theUser to "-e Username" -- muss natürlich angepasst werden
set thePasswd to "-p Password" -- muss auch angepasst werden
set theLocation to "-o ~/Movies/" -- kann ebenso angepasst werden
set theCommand to "otrdecoder " /* vorausgesetzt otrdecoder liegt in /bin/ */
tell application "iTerm"
do shell script theCommand & toConvert & space & theUser & space & thePasswd & space & theLocation & space
end tell
display dialog "Convert finished" buttons {"delete otr-file", "ok"} default button 1
if button returned of result contains "delete otr-file" then
tell application "Finder"
move theFile to trash
empty the trash
end tell
end if
-------------------------------------------------------------------------------------
viel spass damit
lg loco