Jump to content

surrealroad

Member
  • Posts

    264
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by surrealroad

  1. Some good comments here. With regards to Alfred not acting before the command has finished processing, this may actually be an implementation thing- I'm sure I've seen other workflows where they're able to prevent the item being actioned before it's finished processing. I'll look into this (the processing delay is due to an OS bug that Apple has chosen not to fix for the past three years) I've opened an issue on github for this: https://github.com/surrealroad/alfred-reminders/issues/10 and also one for your suggestion regarding the priority: https://github.com/surrealroad/alfred-reminders/issues/11
  2. My guess is that you're pressing enter before the workflow has caught up. If you type "r this" from Chrome, what does the status beneath the command in Alfred say, just before you press enter?
  3. I've updated the main workflow with this change– you can now hold down option in Alfred to open the note in a Window, and there's a property in the "Run Script" action (alwaysShow) which will always do this if set to true.
  4. Very interesting! So the thing to do would be to modify the alfred_library.scpt in the bundle: on createNote(noteTitle, noteBody, notesFolder, notesAccount) tell application "Notes" if notesAccount is not "" then tell account notesAccount if notesFolder is not "" then tell folder notesFolder to set theNote to make new note with properties {name:noteTitle, body:noteBody} else tell first folder to set theNote to make new note with properties {name:noteTitle, body:noteBody} end if end tell else tell first account if notesFolder is not "" then tell folder notesFolder to set theNote to make new note with properties {name:noteTitle, body:noteBody} else tell first folder to set theNote to make new note with properties {name:noteTitle, body:noteBody} end if end tell end if end tell --this is the bit that will open the note set old_delim to applescript's text item delimiters set applescript's text item delimiters to "/" set noteFile to (last text item of theNote's id) & ".notesexternalrecord" set applescript's text item delimiters to old_delim do shell script "find ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/ -name " & quoted form of noteFile & " |xargs open" end createNote I'm actually considering putting this into the released workflow, maybe via a modifier key. Very cool!
  5. That's an interesting approach. You can probably just append to the workflow a call to system events to find the most recent file in a given folder, and then just use the open command to launch it. That said, I have no idea whether this would even work _outside_ of this workflow.
  6. Can you type "rtest" into alfred, and paste the results from your clipboard
  7. Every four days, when using the workflow. You can change the frequency (or disable completely) by editing the values at the top of the very first script trigger.
  8. Please refer to the very first post in this thread, anything asterisked will not work
  9. That debug message looks to me like a red herring, it's perfectly fine for "theDate" to not have a value in the workflow. The main thing, as pointed out in the first post, is that the commands for displaying reminders, such as "r all" are not available on 10.9+, due to a long-standing bug in the OS.
  10. I just tried "r test in family list" and it worked ok. The only issue is that notifications don't seem to be working, but that's something I'll look into after 10.10 is released.
  11. Ok that first thing might be a bug at my end, when you click the mail link in reminders.app does it open? As for the default list, there's a property for this in the workflow, i think the very first post in this thread should have the details.
  12. so if you take the bit after "message:%3C", that's the "message id", which you can use to ask Mail.app for the body of the message.
  13. I'm not familiar with taskpaper, so I don't know for sure, but I would imagine if it has AppleScript support then that should be possible.
  14. Logged as a potential enhancement in a future release (https://github.com/surrealroad/alfred-file-metadata/issues/1)
  15. In what way? Folders don't have any properties that would make this workflow useful
  16. No idea I'm afraid: once you've granted it permssion, it should "just work". Verify the settings in System Preferences > Security> Privacy > Reminders
  17. "sn" is not a keyword used by this workflow (unless you've changed it?)
  18. How it works is that if Reminders was closed when you run a command via alfred, it will close it again after it adds the reminder, if it was already open, then it will stay open. It's by no means foolproof, so if you find a situation where this is not the case, do let me know.
  19. 2do doesn't appear to support applescript, so no.
  20. Hmm looks like the file protocol changed in Mavericks (let me know if you're not using Mavericks). I'll fix that. As for notes.app, I can't support it in this workflow because (somewhat unbelievably) its AppleScript support is lacking. It's not possible, for example, to find out what the current note being viewed is. The best I could do is grab the text off the titlebar, but that just doesn't seem good enough.
  21. The reason the workflow doesn't work like that is because what you're asking for is really more in the realm of iCal than reminders. The purpose of setting a reminder is to be reminded. I therefore consider setting due dates (which I don't even know if you can do in Mavericks any more) to be more advanced functionality. That said, if you want to edit the files, you just need to edit "alfred_library.scpt", find the function "actionReminderQuery" and change set theReminder to make new reminder with properties {name:theText, remind me date:theDate, body:theBody} to set theReminder to make new reminder with properties {name:theText, due date:theDate, body:theBody} Which may not work on OS 10.9.
  22. can you give me an example of the command you're typing that doesn't work?
  23. can you be a bit more specific about what you're typing that doesn't work?
×
×
  • Create New...