ttscoff / Slogger

Social logging script for Day One
756 stars 160 forks source link

Slogger entries not showing up? #151

Closed scatteredbrain closed 11 years ago

scatteredbrain commented 11 years ago

Slogger appears to be working(I have 2 plugins enabled and they generate ".doentry" files in the Day One journal location(in this case iCloud).

BUT, Day One doesn't seem to recognize them as entries it can display.

Any thoughts on why?

EDIT: Sorry if this isn't the right place for this sort of thing, let me know where I should post this.

ttscoff commented 11 years ago

This is the right place. Have you quit and re-opened Day One?

scatteredbrain commented 11 years ago

Yup, I have.

It did accept at least one set of slogger-generated entries, but that was when I first was messing around and unfortunately I can't remember what happened before and after. I don't think I changed anything apart from running the install.rb script to add it to the launchd config(which I can confirm did work as it does create the entries at 23:50 each night, and they are in the same location as the rest of my day one entries.

It's just DO doesn't seem to "see" them.

ttscoff commented 11 years ago

Could you post the contents of one of the generated entries that isn't showing up?

scatteredbrain commented 11 years ago

Sure thing:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Creation Date</key>
  <date>2013-05-14T03:50:03Z</date>
  <key>Entry Text</key>
  <string>## Instapaper reading

#### Instapaper: Unread

* [How Bing Crosby and the Nazis Helped to Create Silicon Valley : The New Yorker](http://www.newyorker.com/online/blogs/elements/2013/05/how-bing-crosby-and-the-nazis-helped-to-create-silicon-valley.html)

* [The Paradox of the Proof | Project Wordsworth](http://projectwordsworth.com/the-paradox-of-the-proof/)

* [This Is the Most Detailed Picture of the Internet Ever (and Making it Was Very Illegal) | Motherboard](http://motherboard.vice.com/blog/this-is-most-detailed-picture-internet-ever)

* [Christian de Duve | Nobel winner, 95 - Philly.com](http://articles.philly.com/2013-05-12/news/39205797_1_euthanasia-christian-de-duve-nobel-prize)

* [The Data Diet: How I Lost 60 Pounds Using A Google Docs Spreadsheet — Technology + Liberal Arts — Medium](https://medium.com/technology-liberal-arts/80adce62cf5c?utm_source=TwitterAccount&amp;utm_medium=Twitter&amp;utm_campaign=TwitterAccount)

* [Tail wagging - Matt Gemmell](http://mattgemmell.com/2013/05/12/tail-wagging/)

#reading
</string>
  <key>Starred</key>
  <false/>
  <key>Tags</key>
  <array>
    <string>reading</string>
  </array>
  <key>UUID</key>
  <string>553EEB3C985F47968FFD787A4710CF45</string>
</dict>
</plist>

FWIW, I'm looking at a directory listing of the entries and it looks like the ones(mostly anyways) generated by slogger do not have the extended attributes flag(@) on them. The ones made manually do. This also seems to concur with some recent behavior(I think): I unzipped a backup of my DO entries, and copied it back to the main location(iCloud container) and then manually added the extra entries from slogger. That seemed to make a whole bunch of entries show up in DO.

So could this just be some sort of permissions thing that slogger needs to set a flag somehow for everything to show up?

EDIT: Digging a bit more shows that the attributes for those files show that they are part of the OSX quarantine process (com.apple.quarantine 85). That might be due to my original solution of overwriting the dayone entry folder with a backup. Unfortunately I don't know what the original status of the day one entries was although I suspect it was not quarantined and seeing as how slogger doesn't trigger/cause that I suspect this might not be the issue?

ttscoff commented 11 years ago

Could be a permissions issue. Can you tell me what ls -ld gives you when run from your Journal folder?

On May 14, 2013, at 9:43 AM, scatteredbrain notifications@github.com wrote:

Sure thing:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Creation Date 2013-05-14T03:50:03Z Entry Text ## Instapaper reading #### Instapaper: Unread - [How Bing Crosby and the Nazis Helped to Create Silicon Valley : The New Yorker](http://www.newyorker.com/online/blogs/elements/2013/05/how-bing-crosby-and-the-nazis-helped-to-create-silicon-valley.html) - [The Paradox of the Proof | Project Wordsworth](http://projectwordsworth.com/the-paradox-of-the-proof/) - [This Is the Most Detailed Picture of the Internet Ever (and Making it Was Very Illegal) | Motherboard](http://motherboard.vice.com/blog/this-is-most-detailed-picture-internet-ever) - [Christian de Duve | Nobel winner, 95 - Philly.com](http://articles.philly.com/2013-05-12/news/39205797_1_euthanasia-christian-de-duve-nobel-prize) - [The Data Diet: How I Lost 60 Pounds Using A Google Docs Spreadsheet — Technology + Liberal Arts — Medium](https://medium.com/technology-liberal-arts/80adce62cf5c?utm_source=TwitterAccount&utm_medium=Twitter&utm_campaign=TwitterAccount) - [Tail wagging - Matt Gemmell](http://mattgemmell.com/2013/05/12/tail-wagging/) #reading Starred Tags reading UUID 553EEB3C985F47968FFD787A4710CF45

FWIW, I'm looking at a directory listing of the entries and it looks like the ones(mostly anyways) generated by slogger do not have the extended attributes flag(@) on them. The ones made manually do. This also seems to concur with some recent behavior(I think): I unzipped a backup of my DO entries, and copied it back to the main location(iCloud container) and then manually added the extra entries from slogger. That seemed to make a whole bunch of entries show up in DO.

So could this just be some sort of permissions thing that slogger needs to set a flag somehow for everything to show up?

— Reply to this email directly or view it on GitHub.

scatteredbrain commented 11 years ago

Sure(included the pwd in case I'm running it in the wrong place):

RagtopSSD:Journal_dayone cen$ pwd
/Users/cen/Library/Mobile Documents/5U8NS4GX82~com~dayoneapp~dayone/Documents/Journal_dayone
RagtopSSD:Journal_dayone cen$ ls -ld
drwxr-xr-x@ 6 cen  staff  204 Oct 31  2012 .
scatteredbrain commented 11 years ago

I unintentionally tried an experiment and it seemed to work:

I turned off iCloud syncing on the desktop client and as soon as it switched to the "custom location" everything that had been generated by slogger immediately showed up in DO.

I then turned off iCloud syncing on the iPhone. (waited for that to finish)

Enabled dropbox on the Mac client. (waited for sync to finish)

Enabled dropbox syncing on iPhone app. (waited for that to finish)

Now at least everything is in both places, and I suspect it will work going forward(I'll letcha know if not). I'm wiling to chalk this up to iCloud weirdness, but if anyone else has this problem they can try this to see if it'll work for them.