Jump to content

Problem with {query} paramater


Recommended Posts

I have been trying to use a script to create an email with the entered query as the subject.  Everything seems to work perfect except that the subject is printed as {query} as opposed to the actual terms that I enter after the keyword.  Any help would be appreciated.  I have it setup that on the keyword it runs the NSapplescript and this is the script:

 

 

on alfred_script(q)
 tell application "Mailplane 3"
set theSubject to "{query}"
  set m to make new outgoing message with properties {directlySend:true, optimizeAttachments:true}
  tell m
      set r to make new to recipient at end
      tell r
          set address to "email address"
          set name to "name"
      end tell
      set subject to theSubject
      set content to " "
  end tell
  compose m
end tell
end alfred_script
 
Thank you.
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...