jhncbrwn Posted October 4, 2018 Share Posted October 4, 2018 (edited) I'm trying to insert a second variable into an AppleScript based workflow but I can't get it to work. This is the AppleScript part set MyDocument to "{query}" set MyText to "{var:text}" tell application "Pages" open MyDocument tell front document set body text to body text & return & MyText end tell close front document end tell The MyTask variable consistently gets appended as {var:text} rather than the actual text passed. Please see the workflow below Append to Pages.alfredworkflow Any advice would be appreciated Edited October 4, 2018 by jhncbrwn Link to comment
deanishe Posted October 4, 2018 Share Posted October 4, 2018 Variables don't work that way. See the pinned thread: kristof 1 Link to comment
jhncbrwn Posted October 4, 2018 Author Share Posted October 4, 2018 Deanishe thanks for your answer. I have figured out that the variables don't work that way ? The problem is I don't understand what I need to do to make it work. Could you show me what I need to change in the workflow to make it work? Link to comment
deanishe Posted October 4, 2018 Share Posted October 4, 2018 Like is says in the post: set MyText to (system attribute "text") kristof 1 Link to comment
jhncbrwn Posted October 4, 2018 Author Share Posted October 4, 2018 That worked! Thank you for your help. 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