- Registriert
- 20.03.09
- Beiträge
- 280
Ich habe ein Problem. Und zwar habe ich auf einer Website das folgende Skript gefunden. Doch wenn ich es ausführe, kommt eine Fehlermeldung. Weiss jemand, wo der Fehler liegt?
set pageURL to display dialog "Enter the URL of the YouTube video's page:" default answer ""
set AppleScript's text item delimiters to "?v="
set v_id to item 2 of text items of text returned of pageURL
set pageURL to "http://www.youtube.com/v/" & v_id
set locationURL to do shell script "curl -I " & pageURL & " | grep ^Location | grep -o 'video_id=.*'"
set AppleScript's text item delimiters to "&t="
set t_id to item 2 of text items of locationURL
set downloadURL to "http://youtube.com/get_video?video_id=" & v_id & "&t=" & t_id
open location downloadURL
Der Fehler liegt vermutlich etwa in der Mitte des Skripts bei "set locationURL to do..."
set pageURL to display dialog "Enter the URL of the YouTube video's page:" default answer ""
set AppleScript's text item delimiters to "?v="
set v_id to item 2 of text items of text returned of pageURL
set pageURL to "http://www.youtube.com/v/" & v_id
set locationURL to do shell script "curl -I " & pageURL & " | grep ^Location | grep -o 'video_id=.*'"
set AppleScript's text item delimiters to "&t="
set t_id to item 2 of text items of locationURL
set downloadURL to "http://youtube.com/get_video?video_id=" & v_id & "&t=" & t_id
open location downloadURL
Der Fehler liegt vermutlich etwa in der Mitte des Skripts bei "set locationURL to do..."