Der Inhalt der action muss so aussehen…
Show Plain Text
- on run {input, parameters}
- tell application "Finder" to set userTemplates to make new folder at desktop with properties {name:"UserTemplates"}
- set userTemplatesPath to userTemplates as text
- tell application "Pages"
- set userTemplateNames to the name of every template whose id of it does not start with "Application/"
- repeat with aTemplate in userTemplateNames
- set newDocument to make new document with properties {document template:template aTemplate}
- set fileName to userTemplatesPath & aTemplate & ".pages"
- save newDocument in fileName
- close newDocument
- end repeat
- end tell
- return input
- end run
natürlich ohne die Zeilennummern