Right after posting the message above and on my way to bed, I realized the import & update mechanism can easily be made more reliable.
Pinboard returns items in reverse chronological order, from current to oldest. Naivly I went ahead and did what you usually always do: process the data as it comes.
Instead, it would be beneficial to import the data backwards, starting with the last element and work your way up to the first.
Just wanted to break my long streak of lurking on this forum in silence by thanking you for putting this together. I was recently playing with the default PinBoard script to no avail. This is really great and I appreciate you sharing it. Thanks.
I’m really excited for this but I can’t get it to work (note: probably user error). Do I just install it in the scripts directory, or is there something else I need to do? I tried inputting my token to the script but then it won’t save.
Do you generally know your way around with AppleScripts?
Open Script Editor.
Copy & paste the code from the gist (linked above) into Script Editor.
Copy & paste your Pinboard API Token.
Save. When asked for location, navigate to ~/Library/Application Support/DEVONthink Pro 2/Scripts
(Or, in DevonThink, find the Script menu, click on Open Script Folder and the folder from there into Script Editor’s save dialog.
Choose a subfolder and name the script. I placed my copy in the Import subfolder.
Return the DevonThink, open the Script Folder, choose the subfolder from step 4 and click on the script name.
I cannot figure it out, but I’m completely ignorant with scripting. This is the error:
tell application “DEVONthink Pro”
get record at “/Pinboard”
–> missing value
Result:
error “Can’t make «class DTco» of missing value into type text.” number -1700 from «class DTco» of missing value to text.
I put the API in, is there anything else I have to enter in the script?
Thank you for this! I’m trying to get this to work. I’m getting errors in script editor when I try to edit the script and add my pinboard API. It says syntax error on the return the adjusted as string. Any ideas?
When I have the Pinboard group in a database, it seems as though it never recognizes it and downloads all of the pinboard pages (web documents) to the root of the database (not in any folder). The log also states that it did not find the group. However, the spotlight comments in the group do update depending on what the most recent downloaded page was.
Weird.
At some point it freezes up for a large download. This may just be my machine however.
Thanks, not sure if you need more info or if this is happening to others???