Hi, all this worked beautifully, and I had a number of feeds working well - until last week, that is. I’m not sure why, other than that I reinstalled the Save to DT Pro script following other suggestions in this forum (thanks Bill).
The feeds seem to be imported, at least there is a progress bar, but no feed is actually added, while I know that new pages have been added to the blogs I capture.
I did not change the script itself.
Any suggestion? Should I reinstall this somehow?
Smolk
PS
This is the script:
– Latest Macintosh News (Internal) %DID NOT CHANGE THE NAME YET!
– Created by Christian Grunenberg on Aug Sun 01 2004.
– Copyright © 2004-2005. All rights reserved.
– Add or remove sites/URLs to/from the following lists
property these_sites : {“balashon”, “Hebrew Aramaic Philology”, “parshablog”, “rif”, “codex”, “yediah (guttmann)”, “abnormal”, “abecedaria”, “English Hebraica”, “Maven Yavin”, “Nach Yomi”, “On the Main Line”, “Toldot”, “Hard Hitting News”, “Unicode Fonts”, “Miqra”}
property these_urls : {“http://balashon.blogspot.com/atom.xml”, “http://hebphil.blogspot.com/atom.xml”, “http://parsha.blogspot.com/atom.xml”, “http://alfasi.blogspot.com/atom.xml”, “http://biblical-studies.ca/blog/feed/”, “http://yediah.blogspot.com/atom.xml”, “http://WWW.telecomtally.com/blog/atom.xml”, “http://abecedaria.blogspot.com/atom.xml”, “http://englishhebraica.blogspot.com/atom.xml”, “http://mavenyavin.blogspot.com/atom.xml”, “http://nach-yomi.blogspot.com/atom.xml”, “http://onthemainline.blogspot.com/atom.xml”, “http://toldot.blogspot.com/atom.xml”, “http://Realjewishnews.blogspot.com/atom.xml”, “http://www.travelphrases.info/gallery/rss/GalleryOfUnicodeFonts_AllFonts.rss”, “http://216.12.134.77/forums/rss.aspx?ForumID=6&Mode=0”}
– Location of news inside database
property this_location : “/MyFeeds/”
tell application “DEVONthink Pro”
activate
try
set site to 1
show progress indicator "Downloading News..." steps (count of these_urls)
repeat with this_url in these_urls
set this_RSS to download markup from this_url
set these_items to get items of feed this_RSS
set this_path to this_location & (item site of these_sites)
set this_group to create location this_path
set URL of this_group to this_url
set attached script of this_group to "~/Library/Application Support/DEVONthink Pro/Feeds/_Synchronize Feeds (Internal).scpt"
repeat with this_item in these_items
set this_title to title of this_item
set this_name to my replaceCharacter(this_title, "/", "-")
set this_link to |link| of this_item
if (not (exists record with URL this_link)) or (not (exists record at this_path & "/" & this_name)) then
set this_record to create record with {name:this_name, type:html, URL:this_link, label:1, attached script:"~/Library/Application Support/DEVONthink Pro/Feeds/_Mark as read.scpt", date:|calendarDate| of this_item} in this_group
set data of this_record to download web archive from this_link
end if
end repeat
step progress indicator (item site of these_sites)
set site to site + 1
end repeat
end try
hide progress indicator
end tell
on replaceCharacter(theString, theOriginalChar, theNewChar)
set {od, AppleScript’s text item delimiters} to {AppleScript’s text item delimiters, theOriginalChar}
set theStringParts to text items of theString
if (count of theStringParts) is greater than 1 then
set theString to text item 1 of theStringParts as string
repeat with eachPart in items 2 thru -1 of theStringParts
set theString to theString & theNewChar & eachPart as string
end repeat
end if
set AppleScript’s text item delimiters to od
return theString
end replaceCharacter