
mlgill
Member-
Content Count
14 -
Joined
-
Last visited
About mlgill
-
Rank
Newbie
Contact Methods
-
Twitter
modernscientist
-
Website URL
http://themodernscientist.com
Profile Information
-
Location
New York, NY
-
Interests
Biophysics. Python. Macs. Running.
-
mlgill reacted to a post in a topic: Open active folder in iTerm2
-
RYE reacted to a post in a topic: Add file to email reply
-
Vero reacted to a post in a topic: Add file to email reply
-
Good to know--I've been looking for this too and couldn't figure out where it went. Thanks!
-
Here's the applescript snippet that will get you most of the way there: on alfred_script(theFilePath) set theFile to theFilePath as POSIX file tell application "Mail" -- get a list of all mail message windows set theMessageList to every outgoing message -- either select the front most mail window or create one if none exist if length of theMessageList is greater than 0 then set theMessage to item 1 of theMessageList else set theMessage to make new outgoing message with properties {visible:true} end if -- add the file to the message tell content of theMessage m
-
mlgill reacted to a post in a topic: Dropbox Short Links Workflow
-
Create reminder in Reminders.app from Alfred
mlgill replied to mlgill's topic in Share your Workflows
Just deleted my current version, downloaded the git version via a zip file from Safari, and reinstalled. Tried a bunch of examples and they all worked fine for me. -
Glad it worked for you, Bethany! I wrote lots of comments and extracted more data from the note than you may want since I figured it might help you learn. I do have one comment about automatically quitting notes once the note was created. If you use notes on your phone or another computer, you will want to make sure the application has time to sync the note to iCloud. This happens very quickly in my experience, but it may not be instantaneous. So it might be wise to insert a time delay before quitting notes. The code to do this is very simple: delay 5 where the number afterwards i
-
bethany7 reacted to a post in a topic: Create a Note in Notes App
-
mlgill reacted to a post in a topic: PubMed searches
-
mlgill reacted to a post in a topic: PubMed searches
-
Hi Bethany, Nice workflow! To get a notification, you have to return a string of some kind from the "alfred_script" subroutine. I'm no Applescript wizard myself, but I think I can help. Here's a sample applescript that will query Notes.app to see if the note was created and then return information about it. I've made lots of comments so hopefully it's relatively clear. on alfred_script(q) tell application "Notes" set theNoteID to make new note in folder "Notes" with properties {name:"From Alfred", body:q} end tell -- this function will check for the note and retun a stri
-
mlgill reacted to a post in a topic: Create a Note in Notes App
-
I created the above before seeing this one which is *way* better http://www.alfredforum.com/topic/173-cloudapp-workflow/
-
Create reminder in Reminders.app from Alfred
mlgill replied to mlgill's topic in Share your Workflows
Good idea. Done. I've also moved the workflow to github so the download link will always stay the same: https://github.com/mlgill/alfred-workflow-create-reminder Because the previous two Cloud.app links contained Applescripts with bugs in them, I've deleted them. The link in this post should be the default from now on. -
Just saw this. Way better than the one I made.
-
drking reacted to a post in a topic: Create reminder in Reminders.app from Alfred
-
Create reminder in Reminders.app from Alfred
mlgill replied to mlgill's topic in Share your Workflows
This works fine for me. This was a bug in the time handling which has hopefully been corrected in this workflow http://cl.ly/0j3d3U1Y000x and in the link above on Github. -
mlgill reacted to a post in a topic: PubMed searches
-
mlgill reacted to a post in a topic: PubMed searches
-
mlgill reacted to a post in a topic: PubMed searches
-
mlgill reacted to a post in a topic: alp: A Python Workflow Module
-
Awesome. I'll look into using this to fix my Cloud.app uploader workflow so the password isn't stored in plain text anymore.
-
mlgill reacted to a post in a topic: AlfPT - Alfred Package Tools (Workflow Installer/Updater)
-
drking reacted to a post in a topic: Create reminder in Reminders.app from Alfred
-
untidey reacted to a post in a topic: Create reminder in Reminders.app from Alfred
-
A workflow to upload a bookmark or file(s) to Cloud.app and return the link to the clipboard. Note that you must enter your Cloud.app username and password in the beginning of the file "alfred_cloudupload.py". The URL for a bookmark should be pasted into Alfred. Single files or directories can be selected via the file filter or multiple files can be selected in Finder as a file action. Multiple files and directories are always zipped before uploading. You can optionally zip every file (even single files) via a switch in the script. http://cl.ly/071P1A3a3z3D I should add tha
-
Here's a workflow that utilizes an Applescript I wrote to parse a text input and create a reminder in Reminders.app http://cl.ly/3D2p051e002M Here's the original Applescript on Github if you wish to copy/modify for your own uses https://gist.github.com/3813222 (The Applescript will work in LaunchBar too.)
-
Shorten URL using goo.gl or preview shortened URL
mlgill replied to mlgill's topic in Share your Workflows
You're of course welcome to edit the workflow in any way you wish, but I don't see any point in copying the expanded url to the clipboard since the unexpanded one is already there and will accomplish the same thing if pasted into a browser. I considered adding an option to open the URL in the default browser but there's no way in Alfred to decide if opening the URL is the desired action after previewing the expanded link. For my usage, automatically opening the URL in a browser defeats the purpose of previewing the expanded link. -
Tyler Eich reacted to a post in a topic: Shorten URL using goo.gl or preview shortened URL
-
Here's a workflow to shorten a pasted URL using goo.gl. Inspired by the Google search that allows alternation between Safari and Chrome, I also added the option to preview an already shortened URL using Notification Center if alt is pressed. http://cl.ly/0y3b3g1y2f07 This mostly builds on existing workflows, but thought I'd post since I don't believe the Goo.gl script has yet been ported from version 1. Enjoy.