jhncbrwn 0 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 Quote Share this post Link to post
deanishe 1,076 Posted October 4, 2018 Variables don't work that way. See the pinned thread: 1 kristof reacted to this Quote Share this post Link to post
jhncbrwn 0 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? Quote Share this post Link to post
deanishe 1,076 Posted October 4, 2018 Like is says in the post: set MyText to (system attribute "text") 1 kristof reacted to this Quote Share this post Link to post
jhncbrwn 0 Posted October 4, 2018 That worked! Thank you for your help. Quote Share this post Link to post