Jump to content

jay-squared

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by jay-squared

  1. I guess the changed alert sound is the cause for me noticing it for the first time. Maybe I would like to change my "bug report" to a feature request then. I think it would make sense - if it is possible - to not emit an error sound when nothing is selected because from my perspective, it makes a lot of sense to use the same key combo regardless of whether text is selected or not. That way, I have to memorise less key combos (I have quite a few search workflows set up that work like this).
  2. OS X version: 10.10.0 Alfred version: 2.5 (299) I have a number of workflows that I trigger using a keyboard shortcut where the keyboard shortcut passes the current selection in OS X to the next step in the workflow. One example is a workflow that searches the CanLII database. The idea is that I can select the name of a case in a text I am reading, trigger the workflow, and look it up immediately. However, there are also instances where I don't want the workflow to use the selected text - or rather where I have no text selected - but want to input my own search query (for instance, reading a non-electronic text or a non-OCR'd text, or just when I am thinking for myself). This is not a problem. If I have no text selected and press the relevant key combo, Alfred just allows me to enter my own text. However, I have recently noticed that it will make a highly irritating error sound if no text is selected and the key combo has the Argument set to "Selection in OS X". There will also be a noticeably longer delay before Alfred appears. It didn't use to be that way. I can't tell whether that is due to Yosemite or the new Alfred version.
  3. Sebastian, thanks. It works great so far. As expected, the copying does not preserve the formatting, but that is a limitation of AppleScript itself and doesn't bother me as I use character style templates in my documents anyways. I have made one minor modification. I added tell application "System Events" set activeApp to name of first application process whose frontmost is true set process_bid to get the bundle identifier of process activeApp set activeApp to file of (application processes where bundle identifier is process_bid) set activeApp to activeApp as string end tell at the very beginning and changed the end of the script to tell application activeApp to activate return theResult As you can see, I also changed the name of the result from result to theResult - for some reason, it wouldnt't work otherwise with my changes. The idea behind these changes was to re-activate the formerly frontmost app after the clipboard was set. The activeApp part is somewhat complex to account for users who have different apps with the same name (I do because of Parallels). Cheers, Jan Jakob
  4. Sebastian, thank you for a great workflow. I have one feature suggestion - obviously, since I am unable to estimate how difficult this would be to implement, this is a mere suggestion. It would be great if one could set a default BibDesk template and then have one additional modifier which - provided the bib fiel containing the publication is open - copies the selected publication formatted according to the preset template to the clipboard. In essence, it would implement Bibdesk's "Copy using template" with a preset template. I am suggesting this because I often write short texts outside of LaTeX where I still cite publications I keep in Bibdesk. For what it's worth, I know it is possible to access the Bibdesk templates in AppleScript (which seems to break rich text) like this: tell application "BibDesk" set theTemplate to "OxfordLegal" set theDocument to document 1 set thePublications to the selection of document 1 tell theDocument to set the clipboard to (templated text using theTemplate for thePublications) end tell
×
×
  • Create New...