Integration with Scrivener

Bernd's Avatar

Bernd

20 Feb, 2012 01:45 PM

I have Scrivener 2.2 (Build 15858). I installed the scripts according to your advise. But nothing works. I used the terminal and the droplet variant. Maybe you can be more specific how to do this. Maybe there is an easier way. It is not easy at all!
Can you help?

MacMini:~ bernd$ chmod a+x /Volumes/Daten/Users/bernd/scripts/scrivwatcher.rb
MacMini:~ bernd$ ~/scripts/scrivwatcher.rb /Volumes/Daten/Users/bernd/Desktop/markdowntest.scriv
Watching markdowntest:
/Volumes/Daten/Users/bernd/scripts/scrivwatcher.rb:93:in `delete': No such file or directory - /Volumes/Daten/Users/bernd/ScrivWatcher/ScrivWatcher - markdowntest.md (Errno::ENOENT)

from /Volumes/Daten/Users/bernd/scripts/scrivwatcher.rb:93

MacMini:~ bernd$

  1. Support Staff 1 Posted by Brett on 20 Feb, 2012 01:52 PM

    Brett's Avatar

    It's trying to delete the wrong directory for some reason. I've incorporated Scrivener support directly into Marked for the next version, and I think I've fixed the error you're getting. I'll contact you privately with a beta link and you can help me test it.

    -Brett

  2. 2 Posted by Lucas Martins on 17 May, 2013 05:09 AM

    Lucas Martins's Avatar

    I replaced line 93 with this:
    ruby begin File.delete(sw_note) rescue Exception => e puts "Unable to delete #{sw_note}" end

    Cheers,

    Lucas.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac