asfrank16 Posted September 24, 2013 Share Posted September 24, 2013 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
vitor Posted September 24, 2013 Share Posted September 24, 2013 (edited) You’re confusing things. If you’re running Run NSApplescript, you’ll use q (or whatever you decide to write inside the parenthesis on the first line), not {query} (which is used with Run Script, and others). Edited September 24, 2013 by Vítor Link to comment
asfrank16 Posted September 24, 2013 Author Share Posted September 24, 2013 Thanks. That fixed it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now