AppleScript名:PKXMLKitでRSSをrecordに |
— Created 2017-12-18 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "PKXMLKit" –https://github.com/pawankv89/PKXMLParser set aURL to "http://piyocast.com/as/feed/" set aXMLURL to current application’s |NSURL|’s URLWithString:aURL set xmlString to current application’s NSString’s alloc()’s initWithContentsOfURL:aXMLURL encoding:(current application’s NSUTF8StringEncoding) |error|:(missing value) set xmlDoc to current application’s NSDictionary’s dictionaryWithXMLString:xmlString set titleList to (xmlDoc’s valueForKeyPath:"channel.item.title") as list –> {"アドウェア「OSX.Pirrit」のAppleScriptコードを読んでみた", "表示中のCotEditor書類の「次」のファイルを縦書きでオープン", "ハンドラ間接呼び出し", …} |
More from my site
(Visited 21 times, 1 visits today)