Search found 465 matches

by iandol
Sat Aug 05, 2017 4:04 am
Forum: Looking for AppleScripts…
Topic: AppleScript to Export Notes in OPML
Replies: 52
Views: 344926

Re: AppleScript to Export Notes in OPML

Yes, as I suspected it was the URLs (although it does load in my Scrivener). Anyway I've added proper URL encoding and I've used xmllint tool to verify the XML is now compliant. I've also added some user options at the top: --User Options--------------------------------------------------------------...
by iandol
Fri Aug 04, 2017 9:27 pm
Forum: Looking for AppleScripts…
Topic: AppleScript to Export Notes in OPML
Replies: 52
Views: 344926

Re: AppleScript to Export Notes in OPML

Dear Asaf, Yes, it is possible that the DOI or URL contains unescaped characters that are invalid for OPML files. I've not had any problems so far. In other languages it is easy to fix, but applescript is generally terrible and has few native functions to help in these sorts of tasks. I tried using ...
by iandol
Fri Aug 04, 2017 9:20 pm
Forum: Looking for AppleScripts…
Topic: Applescript: get attachment path?
Replies: 10
Views: 15192

Re: Applescript: get attachment path?

OK will give that a go, at least having the names means we can say what, and how many, the attachments are, even if we may not easily get their path. Again, this isn't major, but something to consider for a wishlist for future additions to Bookends very useful applescript support. While we're on the...
by iandol
Fri Aug 04, 2017 12:35 pm
Forum: Looking for AppleScripts…
Topic: Applescript: get attachment path?
Replies: 10
Views: 15192

Re: Applescript: get attachment path?

Yes for me that would be fine, I suppose it would be good to be able to write a script others could use without requiring them to also install a new format? This was actually inspired by the OPML script Dave83 wrote, I wanted to add links to the PDF if present and make it so others could use it.
by iandol
Fri Aug 04, 2017 12:31 pm
Forum: Looking for AppleScripts…
Topic: AppleScript to Export Notes in OPML
Replies: 52
Views: 344926

Re: AppleScript to Export Notes in OPML

No, I use the Bookends keywords. They are embedded in within the notes and preceded with the percent sign (%). Hm, my BE keywords are not included in the OPML output, and I can't see how they are processed? Do you manually add them to your notes or how does the OPML script do this? Thanks for the i...
by iandol
Fri Aug 04, 2017 1:06 am
Forum: Looking for AppleScripts…
Topic: Applescript: get attachment path?
Replies: 10
Views: 15192

Applescript: get attachment path?

Hi Jon, it would be neat if we could get get the attachment path using applescript, i.e. a new event: «event ToySGETA» uniqueID would return the path[s] of any attachments ref:uniqueID had.
by iandol
Fri Aug 04, 2017 12:58 am
Forum: Looking for AppleScripts…
Topic: AppleScript to Export Notes in OPML
Replies: 52
Views: 344926

Re: AppleScript to Export Notes in OPML

One small update: if you use "
" (newline in XML) you will get line feeds that formats things better in Scrivener. e.g. set ref_text to opml_outline & ref_author & ", " & ref_date & " (ID:" & ref_nbr & ")\"" & ¬ opml_no...
by iandol
Thu Aug 03, 2017 9:28 pm
Forum: Looking for AppleScripts…
Topic: Ability to Use AppleEvents to Retrive Temporary Citiation Key
Replies: 6
Views: 12777

Re: Ability to Use AppleEvents to Retrive Temporary Citiation Key

Dave, actually I think it is fine to use the default temporary citation format as part of the output OPML — I thought your original code was parsing the cite_key_components (original line ~154) taken from the clipboard temporary citations to first author/year, and this was broken when I tried to use...
by iandol
Thu Aug 03, 2017 9:16 pm
Forum: Looking for AppleScripts…
Topic: AppleScript to Export Notes in OPML
Replies: 52
Views: 344926

Re: AppleScript to Export Notes in OPML

Dear Dave, this is now working for me. I'm also completely happy that you use the default temporary citation as part of the content: I misunderstood your first script code and as it was not working for me thought you were using it to extract the first author and year from. I can do my own post proce...
by iandol
Thu Aug 03, 2017 7:02 am
Forum: Looking for AppleScripts…
Topic: Ability to Use AppleEvents to Retrive Temporary Citiation Key
Replies: 6
Views: 12777

Re: Ability to Use AppleEvents to Retrive Temporary Citiation Key

Hi, actually I am the user over on the Scrivener forum. I use an automated Pandoc workflow[1] with Scrivener so my temporary citations are of the form [@user1]. User1 is set as the BibTeX key. I tried running the OPML export script and it failed to give any authors or dates: <outline text="No A...
by iandol
Fri Jun 23, 2017 3:21 am
Forum: Bookends
Topic: Getting the best metadata from Google Scholar
Replies: 2
Views: 2453

Re: Getting the best metadata from Google Scholar

I assume we have to use Safari so a cookie is set that BE's browser can read? Does it matter if we are logged into our Google account or not?
by iandol
Thu May 25, 2017 10:46 am
Forum: Looking for AppleScripts…
Topic: Parsing BE BiBTeX export to enforce Case in Titles
Replies: 8
Views: 18267

Re: Parsing BE BiBTeX export to enforce Case in Titles

OK so the fix case script still offers some useful functionality (more general in what can be protected, and preserve+enforce lists) not available within the bookends export...
by iandol
Thu May 25, 2017 10:41 am
Forum: Bookends
Topic: Don't duplicate title to short title?
Replies: 2
Views: 2214

Re: Don't duplicate title to short title?

I can work round it by just removing that field in my customised bibtex filter (all my refs have a title field), so if this isn't an issue for most users, as long as I wasn't missing something, no big deal...
by iandol
Wed May 24, 2017 10:14 pm
Forum: Bookends
Topic: Don't duplicate title to short title?
Replies: 2
Views: 2214

Don't duplicate title to short title?

Hi, in the BibTeX format for conference proceedings, there is: title = $`{`t`}`, $ booktitle = $`{`s`}`, $ My short title field is empty, and I thus assumed that I should get an empty booktitle: title = {My long title} booktitle = {} but it seems if it is empty, s gets duplicated with t: title = {My...
by iandol
Wed May 24, 2017 11:19 am
Forum: Looking for AppleScripts…
Topic: Parsing BE BiBTeX export to enforce Case in Titles
Replies: 8
Views: 18267

Re: Parsing BE BiBTeX export to enforce Case in Titles

OK I was using UTF-8. This is quite a confusing setting, as I can output RIS format using a BiBTeX "format", and the BiBTeX output is actually UTF-8 encoded! What is the BibTeX "encoding" actually doing that isn't just UTF-8 + the settings from Preferences? And although now {2D} ...