Jump to content

[SOLVED] Need help with append to Pages with two variables

Recommended Posts

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 by jhncbrwn

Share this post

Link to post

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?

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...