On May 6, 2012, at 3:37, D.A. Fonda wrote:

> Hello. For an academic project I have underway, I'm trying to write a short 
> script that can be triggered by a folder action, such that the PDFs in the 
> directory have their annotations (mostly highlights) converted to Skim, and 
> then exported. This works fine done one at a time through the menus in the 
> application. I've added the path to the SharedSupport binaries to my bash 
> path, and this seems like it should work, run from within the target directory
> 
> find ./*pdf -exec skimpdf unembed {} {}-out.pdf \;
> find ./*out.pdf -exec skimnotes get -format rtf {} {}-notes.rtf \;
> 
> But the files I get look like this:
> 
> * Highlight, page 1
> 
> * Highlight, page 2
> 
> * Highlight, page 2
> 
> * Highlight, page 2
> 
> * Highlight, page 4
> 
> * Highlight, page 4
> 
> 
> All the actual text is dropped. This doesn't happen when I do both steps 
> manually in the application, or just when I do the first step in the 
> application (File>Convert) and then run the second command shown above. Thus:
> 
> • Highlight, page 2
> is impossible, and they advocate for the wholesale dismantling of the concept 
> of anonymization. 5 In its place,
> 
> • Highlight, page 2
> privacy advocates recommend that research data should be regulated under the 
> strong property and autonomy
> 
> • Highlight, page 2
> models of privacy favored by Lawrence Lessig, Jerry Kang, Paul Schwartz, and 
> other scholars. 6
> 
> 
> 
> (I can deal with the duplicate header lines using various other utilities on 
> the end of the action.)
> 
> Am I using the wrong command for the first step?
> 
> Thanks!
> 
> -Dan
> 
> -- 
> -Dan F
> [email protected]
> 
> Sent with Sparrow

This is indeed how it works. The command line command does not set a highlight 
note's text to the text from the PDF, because it does not have access to the 
PDF.

Christiaan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to