dfay Posted April 2, 2013 Share Posted April 2, 2013 I am setting up a very simple workflow (my first). I have a keyword linked to a Run NSAppleScript action, with a script that executes successfully. Here's the script: on alfred_script(q) tell application "TaskPaper" tell front document tell project named "Inbox" make new entry at beginning with properties {name:"- " & q} end tell end tell end tell end alfred_script The Run NSAppleScript action links to a Post Notification output with text set to {query} added to Taskpaper If I check the "Only show if passed in argument has content" box, the notification doesn't display. If I uncheck the blank, I get a notification reading "added to Taskpaper". i.e. the Post Notification output thinks that {query} is blank. How do I get the NSAppleScript to pass on {query} to the Post Notification output? Link to comment
jdfwarrior Posted April 2, 2013 Share Posted April 2, 2013 I am setting up a very simple workflow (my first). I have a keyword linked to a Run NSAppleScript action, with a script that executes successfully. Here's the script: on alfred_script(q) tell application "TaskPaper" tell front document tell project named "Inbox" make new entry at beginning with properties {name:"- " & q} end tell end tell end tell end alfred_script The Run NSAppleScript action links to a Post Notification output with text set to {query} added to Taskpaper If I check the "Only show if passed in argument has content" box, the notification doesn't display. If I uncheck the blank, I get a notification reading "added to Taskpaper". i.e. the Post Notification output thinks that {query} is blank. How do I get the NSAppleScript to pass on {query} to the Post Notification output? You aren't returning anything from the script so there is nothing sent to output of the NSAppleScript, therefore {query} is empty when it gets to the next step Link to comment
dfay Posted April 2, 2013 Author Share Posted April 2, 2013 Thanks. I had tried it with "return q" after the last line, but moving it to before "end alfred_script" passes it successfully. Link to comment
jdfwarrior Posted April 3, 2013 Share Posted April 3, 2013 Thanks. I had tried it with "return q" after the last line, but moving it to before "end alfred_script" passes it successfully. Awesome, glad you got it working. 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