[Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScriptその2
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
| 固定リンク
« [AppleScript]スクリプトメニューを利用可能にする。(10.6x) | トップページ | [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript 新旧混在版 »
「AppleScript」カテゴリの記事
- 濁音 半濁音 置換用レコード(2023.08.21)
- [AppleScript]キーノートの書類サイズを指定して作成(2022.01.09)
- [awk]行頭のスペースを削除する(subで置き換え)(2021.11.16)
- [SpotLight]選択範囲でSpotLight検索(2021.11.03)
- [AppleScript]リソースフォーク(カスタムアイコン)削除(2021.10.12)
「YouTube Rss」カテゴリの記事
- YouTubeのユーザーチャンネルアップロードFEEDを取得する(2012.01.20)
- [Google Chrome]YouTubeのRSS feedを登録するAppleScript(2012.01.20)
- [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript 新旧混在版(2012.01.19)
- [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScriptその2(2012.01.19)
- [Safari]YouTubeのユーザーチャンネルのRSSを登録するAppleScript(2012.01.18)