Der Inhalt der action muss so aussehen…

Show Plain Text
  1. on run {input, parameters}
  2.   tell application "Finder" to set userTemplates to make new folder at desktop with properties {name:"UserTemplates"}
  3.   set userTemplatesPath to userTemplates as text
  4.   tell application "Pages"
  5.     set userTemplateNames to the name of every template whose id of it does not start with "Application/"
  6.     repeat with aTemplate in userTemplateNames
  7.       set newDocument to make new document with properties {document template:template aTemplate}
  8.       set fileName to userTemplatesPath & aTemplate & ".pages"
  9.       save newDocument in fileName
  10.       close newDocument
  11.     end repeat
  12.   end tell
  13.   return input
  14. end run


natürlich ohne die Zeilennummern
----------
Gruss

Stefan