On 26 Jun 2008, at 2:59 PM, david friedman wrote: > christiaan, > > thanks for your reply. > > after looking at the wiki, downloading a template and messing around > a bit, i came up with a template that seems like it should do the > trick, but there is one hitch. > > whereas, i can get the filename, without a path or extension by using: > > <$fileName.lastPathComponent.stringByDeletingPathExtension/> > > this does not work when it is in the template like this: > ----- > <[EMAIL PROTECTED]> > # <$fileName.lastPathComponent.stringByDeletingPathExtension/>, p. < > $pageIndex.numberByAddingOne/> # > > <$string?> > <$string/> > > </$string?> > <$text?> > <$text/> > > </$text?> > </[EMAIL PROTECTED]> > ---- > > what have i done wrong? > > the o/p i am looking for is: > ----- > # <filename>, p. <pagenumber> # > > text text text > ----- > > for each note. > > so far, my test template, gives me everything i want except the > filename. > > thanks very much for your help. > > kind regards, > > david >
Inside a collection template tag (a pair of <$key> and </$key> tags) the keys refer to properties of the *items* in the collection. So in this case to notes. And the notes don't have a fileName property. In this case, you can do something like this (though this is not documented): < $ page .containingDocument .fileName.lastPathComponent.stringByDeletingPathExtension/> Christiaan > On 24 Jun 2008, at 12:32 AM, david friedman wrote: > >> skim is my main way of turning PDFs into text notes. >> >> now that i am working on a thesis, i need to handle lots of text >> notes, so i want to import them into scrivener. >> >> the best way to do this would be to turn the notes into a >> multimarkdown file. so, whereas skim exports notes in a format like >> this >> >> *Highlight <filename>, page xxx >> >> i would like to switch the format to >> >> # <filename>, page xxx # >> >> followed by two carriage returns! >> >> is there a way to specify the format of the exported notes? >> >> does anyone have a simple idea for how to convert the note file? >> >> thanks for your help (and for a great app), >> >> cheers, >> >> birksworks > > Skim uses a template file for export of notes as text. You can > customize the template file that is used for the export. The Skim Wiki > has a full description of how to do this, look in the Tips & Tricks > section. > > Be aware however that part of that description will change a little > bit for the next release, which should come out somewhere this week (I > hope). > > Christiaan > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
