Hi,
Been using Bibdesk for a while now and been very impressed with the feature set
and quality of the software. I have just started to write my own export
template to extract references in a format that I can us in a Wiki. I would
like to include the reference information and a list of annotations from the
attachments (annotated with skim). I have got this all working and I am very
pleased with the results. But I would like to include a link at the end of each
annotation that launches Skim and positions the article to the correct page for
the annotation.
The problem that I am having is that I need the name of the attachment, but the
code is in the context of the annotation. I can not figure out a way of getting
the attachment name. An example of this is:
<$localFiles?>
<$localFiles>
<$path.lastPathComponent.stringByDeletingPathExtension/>
<$scriptingSkimNotes?>
<$scriptingSkimNotes>
<$type=Highlight?>
<$contents/>
[skimx://<$path.lastPathComponent.stringByDeletingPathExtension/>#<$pageIndex/>
p. <$pageIndex/>]
</$type?>
</$scriptingSkimNotes>
</$scriptingSkimNotes?>
</$localFiles>
</$localFiles?>
The code on the third line returns the name of the attachment, but code on the
7th line does not, because it is in the context of the scriptingSkimNotes. So
my question is, is it possible to get the attachment name whilst in the context
of the scriptingSkimNotes or perhaps save the attachment name in a variable,
that I can access?
I may be asking too much of the export process and therefore may need to use an
Applescript instead. I have searched through the wiki and this mail list for
the answer but have not found anything. If someone could let me know if this is
possible that would be great.
Thank you
Marc
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users