« [AppleScript]スクリプトメニューを利用可能にする。(10.6x) | トップページ | [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript 新旧混在版 »

[Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScriptその2

軽量化出来ました。

Website_image20120119_05236


この取得方法は旧チャンネルや旧プレイリストに対応していないの
次回
新旧対応のを作ってみたいと思います。


スクリプトメニューに入れて使います。
スクリプトメニューの出し方はこちら

set theURL to ""
set theUserID to ""
set theGoogleReaderURL to "https://www.google.com/reader/view/feed/"

--------------------------全面のURLを取得
tell application "Safari"
activate
set theURL to (URL of document 1) as Unicode text
end tell
------------------USERIDの取得の処理開始
set theListFLIDcom to "curl " & "\"http://www.youtube.com/oembed?url=" & theURL & "&format=xml\"" & " | sed -e 's/<author_name>/¤/' | sed -e 's/<\\/author_name>/¤/' | awk -F¤ '{print $2}' | tr -d '\n' "
set theUserID to do shell script theListFLIDcom
------------------USERIDの取得の処理終了
--------------------------GoogleReader用のURLへ整形します
set theUserRssURL to theGoogleReaderURL & "https://gdata.youtube.com/feeds/base/users/" & theUserID & "/uploads"

--------------------------GoogleReader用のURLを開きます
tell application "Safari"
launch
activate
make new document
delay 1
tell window 1
open location theUserRssURL
end tell
end tell


「GetYouTubeFeedsSafariv2.scpt.zip」をダウンロード

「GetYouTubeFeedsSafariv2.rtf」をダウンロード

|

« [AppleScript]スクリプトメニューを利用可能にする。(10.6x) | トップページ | [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript 新旧混在版 »

AppleScript」カテゴリの記事

YouTube Rss」カテゴリの記事

トラックバック


この記事へのトラックバック一覧です: [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScriptその2:

« [AppleScript]スクリプトメニューを利用可能にする。(10.6x) | トップページ | [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript 新旧混在版 »