Jump to content

dfay

Member
  • Content Count

    907
  • Joined

  • Last visited

  • Days Won

    50

Everything posted by dfay

  1. Spotlight, built into the last 8 or so iterations of macos, also searches PDF content...
  2. Hi Rob I am getting the same issue described above with uo . Also using any of u ug uf us throws a KeyError: 'displayName' full message here: [2017-10-28 10:51:16][ERROR: input.scriptfilter] Code 1: ulysses_items.py:124: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert (os.path.exists(args.limit_scope_dir), 10:51:15 workflow.py:2249 DEBUG workflow version: 1.0.0 10:51:15 workflow.py:1657 DEBUG reading settings from /Users/usernamehere/Library/Application Support/Alfred 3/Workflow Data/com.github.robwalton.alfred-ulysses-work
  3. I haven’t done any more work on the Ulysses workflow - but I’ve been using it many times a day with no problems - until earlier today, actually. I had to reset LaunchServices to clear up some Quicklook problems (cf. ) and it broke my custom url handler as a result. Fortunately reopening the applet directly from /Applications re-registered it and got it working fine again.
  4. Nice. Knowing the developers there'll probably be a lot more capability three or four versions down the line.
  5. You need to view the source of the page and look for the name attribute of the search text entry box itself. In this case it's here: <form class="header-search-form" id="searchForm1" action="https://papers.ssrn.com/sol3/results.cfm" method="post" target="_top" name="formQuickSearch"> <i class="icon icon-gizmo-search" role="button" aria-label="Search eLibrary"></i> <input type="text" class="header-search-input" aria-label="Search eLibrary" placeholder="Search eLibrary" name="txtKey_Words" id="txtKeywords" required> <input type="hidden"
  6. No AppleScript support or URL scheme so far, so there's not an easy point of entry.
  7. Wow this might be the workflow that finally gets me to switch from BibDesk to Bookends....
  8. download link on 1st page is broken
  9. See also this which uses conversion to seconds as the basis for a time calculator
  10. These were the directions I followed: https://yourmacguy.wordpress.com/2013/07/17/make-your-own-url-handler/ and here's the script that I used in the handler (complete with all my commented-out testing lines): on open location theURL -- set theURL to "sourceapp://x-callback-url/success?targetId=jsvEPFa6vvq3vDmrAt4KGA&targetURL=ulysses://x-callback-url/open?id%3DjsvEPFa6vvq3vDmrAt4KGA" -- display dialog theURL set x to the offset of "ulysses" in theURL set y to the offset of "?id%3D" in theURL -- display dialog y
  11. Also - writing a callback handler in AppleScript and registering it is pretty easy - I have one that lets me create a new Ulysses sheet then pass the URL back to BibDesk to attach to a publication record , & I'm happy to share it and the links I used to figure it out if you're interested. I'd expect that Bear's URL scheme will eventually provide callback info & this may yet be an option.
  12. Look at the work Rob Walton (and I, in lesser capacities) have done with the Ulysses workflow : A lot of the challenges are similar - the solution there relies on parsing the library for some parts of the workflow and using the URL scheme for others. (Incidentally I was in the early Bear betas and ended up moving everything to Ulysses when I ran into the limits of hashtag-based organization--haven't looked back).
  13. see There was another discussion recently re Spark in particular. Readdle hadn't built in any Applescript support, and if they repeat their approach to PDF Expert on the Mac, they won't in the future, unfortunately.
  14. I use it in Alfred file actions, mostly (I can't think offhand of any conventional workflows where I use it....). e.g. I have a file action "Move to Dropbox tagging current" which runs the following bash script: /opt/local/bin/tag -a current {query} mv {query} '~/Dropbox/'
  15. This is a post without a workflow. Much of what I have to say is also applicable to SAS, SPSS, Excel, or whatever else you might use to analyze quantitative data. Whenever you're collecting data you want to have a codebook listing all your variables and a longer description of what each refers to, what each means for categorical variables (e.g. 1=mac, 2=windows, 3=amiga os, etc.). Putting your codebook in a CSV has multiple advantages. You can keep your codebook in a single file & merge it (in whatever - I use Nisus) but also use it as a list filter in Alfred. Output the
  16. See also https://github.com/jdberry/tag But the really great idea is setting the file action (not file filter, correct?) to toggle, not just add. FWIW I use Finder for almost all my tagging -- using a keyboard shortcut as Dean suggests -- auto-completion is super fast.
  17. Feel free to add it to your much more comprehensive workflow!
  18. Just ran into another issue when I sat down at my iMac for the first time in a week....workflows sync via Dropbox but of course Ulysses authentication tokens are not the same from one Mac installation to another. I think I will need to do something like this and pass the authentication token when I call the script in the Script Filter. Unless you see a better way.
  19. This reminds me I meant to post about a weird issue I had last night. I kept getting a message "xcall.app is no longer running". In activity monitor there were like nine instances of xcall active. I had to kill them all manually before the workflow would work again.
  20. PDF Split (File Action) Split a two-page scanned PDF into two separate pages. Accepts multiple files. When used on a file original.pdf, it creates original-split.pdf in the same location. All the action is in splitPDF.py which is a very slightly tweaked version of a script by Hanspeter Schmid posted here. Built with PyPDF2. Download: https://www.dropbox.com/s/ablkq7p94dxnn5l/PDF Actions.alfredworkflow?dl=1 Not as versatile as Skimmer : PDF actions for Skim was, but working and hopefully more future-proof.
  21. stately-plump-buck-mulligan was taken?
  22. Just occurred to me that both of these assume there's only one root level library item i.e. library[0] Presumably for this to work with On My Mac or External Folders you'd need to iterate through the root level items.
  23. Here's a cleaner version of ul that makes use of the ulysses-python-client library. I also changed it to output just the identified as the argument. #!/usr/bin/python # search for a sheet's title and return its identifier import ulysses import json token = "your token here" ulysses.set_access_token(token) library = ulysses.get_root_items(recursive=True) def all_sheets(g): if hasattr(g, 'containers'): for c in g.containers: yield json.dumps({u'title': c.title.replace('"', '').replace(',', '').replace(':',''), u'arg': c.identifier, u'subtitle': c.type.capitalize()}) for
  24. Actually there's a typo in Rob's code … in ulysses_calls.py -- open_recent() should call the URL that patgilmour pasted above. def open_all(): # @ReservedAssignment """Open special group 'All', bringing Ulysses forward.""" call('ulysses://x-callback-url/open-all') def open_recent(): # @ReservedAssignment """Open special group 'Last 7 Days', bringing Ulysses forward.""" call('ulysses://x-callback-url/open-all') Here's a script which can be put in a script filter to search the Ulysses library returning newest results at the top. I call it usd f
×
×
  • Create New...