Jump to content

katie

Member
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    2

katie last won the day on October 12 2018

katie had the most liked content!

Recent Profile Visitors

1,258 profile views

katie's Achievements

Member

Member (4/5)

9

Reputation

  1. Wow, thank you. I can't believe you found it! I will start looking through Rob Trew's posts on all of those platforms. Thank you, also, for the advice. I will pursue the AppleScript path. In fact, I think I should regardless of whether I find a working script for this so that I won't be so stuck again in the future if something breaks. I don't use TeX at all, either. I just love how quick, accessible, and open BibDesk is. My goal is to move everything to plain text, stored in my university-provided cloud, and indexed/processed in DT. I couldn't find a suitable alternative for DT; it's just so good at what it does. At least it's easy to keep your files where they are or get them out, if necessary.
  2. Thank you for the working script for exporting to markdown, @dfay. I'm wondering how difficult it would be to change this script for my own workflow. My goal is the following: Export into separate markdown files for each annotation. Ideally, these would be named automatically, for e.g., using the first 5 words of the contents, and placed in a folder named by the pdf name. Include the name of the colour of the highlight from Skim in each file (so it can be used to filter/process them). Edit: ✓ I couldn't figure out how to capture and name colours, but, I've managed the important part of indicating the colour of the highlight. As a plus, it should work with any used colour, not just set values. Include the link back to the PDF in each file. I know it was mentioned that this could be done by adding back in that functionality, but I could not figure this out. This one is just a perk though. Edit: ✓ Essentially, I am in this situation because my original workflow relied on a script that did exactly this. It would take a Skim pdf, export all annotations as separate files to DevonThink (but to .rtf, not markdown). I cannot find it anywhere - all links to it are broken (e.g. https://wippp.com/home/writing-workflows-processing-annotations-all-roads-lead-to-skim). My workflow was based around the idea the zettelkasten information management - so preparing little chunks of information that can be further processed and filtered and summarized, etc. From what I can tell, this could potentially be accomplished in two ways: (1) starting with this script for exporting to markdown, but instead parsing the clipboard to create different files and adding colour information (2) using a Skim export template, which can apparently identify colour (https://sourceforge.net/p/skim-app/feature-requests/1417/) and include a link to specific annotations in the pdf (https://sourceforge.net/p/skim-app/feature-requests/1520/). I found a template that exports to markdown (https://github.com/semicolonsnet/skim-templates), but I'm really new to this and couldn't get it to function. It's not clear to me whether separate files can be created. For those of you who are experts in coding - would you be familiar enough with this to know which approach (applescript or template) I should attempt? And how future-proof would it be? I'm kicking myself for getting used to this workflow. Once it broke, I procrastinated on trying to fix it and now I have a bunch of read pdf's that are just stuck. I'm not sure if I should give up on this entirely and just figure out a new academic workflow. I'm definitely not expecting or asking anyone to do this for me. I'm just hoping that someone might have an opinion on which approach would be more sustainable and a worthwhile use of my time to pursue. Or if there's another simpler approach that would work best. I've also found that it is surprisingly difficult to try to change my method of reading/highlighting, so I'm open to hearing about other people's academic workflows! Thank you for reading! Katie Edit: I forgot to mention that I found a similar script (https://github.com/achamess/skim_to_md_script) but it relies on the user having Papers3.app and I use BibDesk. Update (2021-01-09): You can add a link back to the specific page in Skim, by adding the following in the appropriate sections of the script: set tURL to "<$skimURL?><$skimURL/></$skimURL?>" -- not sure if only the middle tag is necessary but it works like this set skimURL to format n using template tURL -- convert template text to actual url -- Then add " [" & correctedPage & "](" & skimURL & ")" to format as a markdown link under each type of supported highlight Update (2021-03-06 ): You can add the colour of the highlight, by adding the following in the appropriate sections of the script: set tColour to "<$color.hexString?><$color.hexString/></$color.hexString?>" -- then add this to the export part: set noteString to noteString & "> " & "<mark style=\"background-color: " & noteColour & "\">" & formattedNote & "</mark>" & " (p. [" & correctedPage & "](" & skimURL & "))" & LF & LF
  3. Thank you; I will try that! Just spent a good chunk of time doing this manually. Edit: And it works! I must have missed an update. This is literally the best day ever.
  4. I really miss this workflow. Has anyone been able to find a workaround or alternative solution?
  5. It's amazing!! Works great!! Thank you so much!!
  6. Hello, I just found out that this workflow doesn't work if you use brackets () in the filename. I get this error in debug mode: [2017-01-30 12:59:29][ERROR: action.script] 15:16: syntax error: Expected “"” but found unknown token. (-2741) It's definitely a minor issue, and not necessary. But if somebody knows what's going on, I'd like to fix it if I can. Thanks
  7. Hi @robwalton! Thanks for getting back to me. I have tried the 'uo <search term>' option and it works - as long as Ulysses is already open. If Ulysses isn't open, then I get two "something went wrong beeps" (as I call them), and Ulysses opens but the open dialogue doesn't. Because of this, I deactivated that keyword because a lot of times I don't want to open Ulysses, especially if it doesn't have what I'm looking for. I guess my computer is slow enough that waiting for a program (even one as light as Ulysses) to open so I can re-do a search, and (potentially) close it, is frustrating. I only use the 'us' and 'ug' keywords! I have a pretty formalized grouping system that 'ug' works great with and I can drill down to the group I need (amazing job on this). The downside of my system, as I mentioned, is that many sheet names are pretty useless or I don't really remember them (e.g. a sheet named "syllabus" in every course admin group). This is why a content search is so appealing to me - so I can check if something is in Ulysses before opening it up (and head right to the sheet, e.g. psy311) or make sure I've made a note of something without opening up Ulysses. And some sheet names are useful. What I'm trying to say is that I think there's a clear distinction between group and sheet searches (at least for me) so I think a new keyword 'uf' would be the best idea (and not to mix in sheet searches with groups as a 'u' search). If it's possible. And if you think it would be useful, too. As it is, I'm really happy with the workflow just so I can open the groups I need! It's what was missing for me to make the most of Ulysses (I used to use nvalt and there are some great workflows for it). Thank you for expending time and effort to build it!
  8. I love this workflow! I've been waiting for something like this! Would it be possible to include a search of the contents of sheets (like ⌘O in Ulysses)? I don't always remember the title of my sheets
  9. I will admit to scanning documentation and being herded effectively by big scary warnings
  10. Ah okay, I was wondering how I missed something like that
  11. That fixes it! Sorry - I must have misunderstood that yellow "Important" box in the documentation. Thank you for your time and help!
  12. Thank you for fixing it! I was able to check out the examples and they are very cool! I put together a list of Cree phrases, just to try it out. The Excel file simply has Cree in column A and English in column B. I was able to create the new workflow, but got an error - screenshot attached. Here's the output from debugging mode: [2016-11-01 18:15:32][STDERR: input.scriptfilter] options=Namespace(docpath='/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Cree Phrases.xlsx', sheet='1', start_row='1', subtitle_col='', title_col='1', value_col='', variables={}) ------ alfred env vars ------- debug='1' preferences='/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences' preferences_localhash='e4d7f5380faa43a368549ac955f682f95dfe7d0a' theme='alfred.theme.custom.FDFFD75C-5F96-4977-AB98-9BC379B75E35' theme_background='rgba(255,255,255,0.89)' theme_selection_background='rgba(27,187,155,1.00)' theme_subtext='0' version='3.1.1' version_build='737' workflow_bundleid='net.deanishe.alfred-i-sheet-you-not.te2WoXM9HJuOzaOHoNuFrhufwUBodNEO3mCu8n8d' workflow_cache='/Users/katie/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-i-sheet-you-not.te2WoXM9HJuOzaOHoNuFrhufwUBodNEO3mCu8n8d' workflow_data='/Users/katie/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-i-sheet-you-not.te2WoXM9HJuOzaOHoNuFrhufwUBodNEO3mCu8n8d' workflow_name='Cree Phrases' workflow_uid='user.workflow.24BE8C94-A724-44D6-8742-3E5CB2A46DC2' workflow_version='0.2.1' ------------------------------ doc_age=4h4m cache_path=u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-i-sheet-you-not.te2WoXM9HJuOzaOHoNuFrhufwUBodNEO3mCu8n8d/a22/ef7/64e/a22ef764e2480554ab32af14a6e30ae3.json' sheet='1', start_row=1, cols=[1, 2, 3], vars={} Opened worksheet "Sheet1" of ~/Dropbox/Apps/Aflred/Alfred 3/Cree Phrases.xlsx ################ FATAL ERROR ################## Traceback (most recent call last): File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.24BE8C94-A724-44D6-8742-3E5CB2A46DC2/isheetyounot/aw3.py", line 239, in rescue fn() File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.24BE8C94-A724-44D6-8742-3E5CB2A46DC2/isheetyounot/cli.py", line 188, in main items = read_data(o.docpath, o.sheet, cols, start_row, o.variables) File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.24BE8C94-A724-44D6-8742-3E5CB2A46DC2/isheetyounot/core.py", line 248, in read_data arg = s.cell(i, cols[2]).value File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.24BE8C94-A724-44D6-8742-3E5CB2A46DC2/xlrd/sheet.py", line 399, in cell self._cell_types[rowx][colx], IndexError: array index out of range ################# END ERROR ################### --------------- 0.032s elapsed ---------------
  13. I think this is a really cool and useful idea for a workflow. I was trying to check out one of the demo's (Random Names) but I get a "fatal error". Screenshot attached. Here's what came out of the debugging mode: Starting debug for 'I Sheet You Not' [2016-11-01 14:15:24][STDERR: input.scriptfilter] options=Namespace(docpath='./Demo.xlsx', sheet='1', start_row='1', subtitle_col='', title_col='1', value_col='', variables={}) ------ alfred env vars ------- debug='1' preferences='/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences' preferences_localhash='e4d7f5380faa43a368549ac955f682f95dfe7d0a' theme='alfred.theme.custom.FDFFD75C-5F96-4977-AB98-9BC379B75E35' theme_background='rgba(255,255,255,0.89)' theme_selection_background='rgba(27,187,155,1.00)' theme_subtext='0' version='3.1.1' version_build='737' workflow_bundleid='net.deanishe.alfred-i-sheet-you-not' workflow_cache='/Users/katie/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred-i-sheet-you-not' workflow_data='/Users/katie/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-i-sheet-you-not' workflow_name='I Sheet You Not' workflow_uid='user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2' workflow_version='0.2.1' ------------------------------ Changing bundle ID to u'aebeea3b23064f60834136b6c503292b' ... cmd=[u'/usr/libexec/PlistBuddy', u'-c', u'Set :bundleid aebeea3b23064f60834136b6c503292b', u'/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2/isheetyounot/info.plist'] Set: Entry, ":bundleid", Does Not Exist ################ FATAL ERROR ################## Traceback (most recent call last): File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2/isheetyounot/aw3.py", line 199, in rescue fn() File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2/isheetyounot/cli.py", line 149, in main change_bundle_id(newid) File "/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2/isheetyounot/aw3.py", line 252, in change_bundle_id check_call(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '[u'/usr/libexec/PlistBuddy', u'-c', u'Set :bundleid aebeea3b23064f60834136b6c503292b', u'/Users/katie/Dropbox/Apps/Aflred/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.252BBBAD-F952-4D6F-A942-3FD6F353E5D2/isheetyounot/info.plist']' returned non-zero exit status 1 ################# END ERROR ################### --------------- 0.025s elapsed --------------- I'm on Mac OS El Capitan (10.11.16), with the latest versions of Alfred 3 (3.1.1 build 736) and this workflow (downloaded today).
  14. This is awesome - I hated clicking through those pages of icons. Thank you!
  15. I did a clean install (but I synced my Alfred settings) and it broke this workflow I got this error in debugging mode: [2016-10-07 09:13:03][ERROR: input.scriptfilter] Code 1: 0:90: execution error: mkdir: /Users/katie/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory (1) I tried to change the scripts to point to Alfred-3, but that was not enough to fix the error. So I tried to re-install but the download link is missing I'm going to dig through my backups to try and get it back, but I thought I would post because people are missing out on this awesome workflow!
×
×
  • Create New...