Jump to content

nitingoyal

Member
  • Posts

    41
  • Joined

  • Last visited

Posts posted by nitingoyal

  1. It is possible - You'll need to craft the specific AppleScript support for MailMate as all mail clients are different. 

     

    Benny from MailMate made the script for me. Works as expected.

    Path of the file should be "~/Library/Application Support/Alfred 2/Plugins/Email/MailMate.applescript"

    Here is the script:

    -- Send an email with an attachment
    on url_encode(theText)
    	return do shell script "printf " & quoted form of theText & " | xxd -u -plain | sed 's/\\(..\\)/%\\1/g' | tr -d '\\n'"
    end url_encode
    
    on create_mailto(_subject, _body, _attachments, _email, _name)
    	
    	set _to to _email
    	if (_name is not "") then
    		set _to to _name & " <" & _email & ">"
    	end if
    	set _mailto to "mailto:?to=" & url_encode(_to) & "&subject=" & url_encode(_subject) & "&body=" & url_encode(_body)
    	
    	repeat with _attachment in _attachments
    		set _filePath to POSIX path of _attachment
    		set _mailto to _mailto & "&attachment-url=file://" & url_encode(_filePath)
    	end repeat
    	
    	return _mailto
    	
    end create_mailto
    
    on send_email_with_attachment(ename, eemail, esubject, ebody, eattachment)
    	
    	set _mailto to create_mailto(esubject, ebody, eattachment, eemail, ename)
    	tell application "MailMate"
    		open location _mailto with trust
    		activate
    	end tell
    end send_email_with_attachment
    

    or you can download the file from here.

  2. Just to update this thread, I'm adding the ability to add custom AppleScript for open ended email support in the next release of Alfred. This means that users will be able to add support for additional mail clients which Alfred doesn't support by default :)

    Is it possible to do so in the current version? How do I set MailMate as default client for sending files/attachements from Alfred?

  3. Unfortunately, since it’s calling the window to the front, it means it’s recognising it, so I’m not sure why it is not working, specially since it does work with other apps (such as Alfred). I’ve downloaded the trial, and not even the example they provide is doing anything, so someone else will have to pick this one up (or you could contact them directly).

    Thanks Vitor for the effort. I'll try to contact the developer.

  4. Sure, what features do you need? If you don’t need tags to be inserted directly from Alfred, for example, then it’s even easier, because you don’t even need a workflow — you can just set it up as a custom search.

    If possible, I would like to add tags from Alfred. 

  5. Can someone help me create a workflow from the following instructions from Justnotes.

     

    Justnotes 1.3.2 supports x-callback-url compatible urls to create and search notes. The url must be x-callback-url compatible. Currently the following actions are supported.

    • make: Create a note
    • Parameters:
      • text: Url encoded text
      • tags: Url encoded comma separated list of tags

      justnotes://x-callback-url/make?text=My%20first%20note&tags=todo%2Cimportant

    • search: Search for text
    • Parameters:
      • text: Url encoded text

      justnotes://x-callback-url/search?text=first%20note

     

     

  6. Nice workflow. see if you can make the workflow to do the following or make a new workflow.

     

    1. Make the note in background and don't display the DevonThink Pro window after creating the note.

    2. Default database/folder for writing notes, without selection anything. like., "dtn New:Note". Currently, it goes nowhere.

    3. Favourite Database/folder, which should be pinned at the top.

    4. append/prepend favourite(predefined and selectable) notes.

     

    Thanks

×
×
  • Create New...