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
Link to comment
  • vitor changed the title to [SOLVED] Need help with append to Pages with two variables

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...