-
Nun die alte Template /gemacht mit Pages ´09) konnte ich noch vor d. Update heute öffnen. Mit 12.1 nicht mehr.
Jetst mus ich HUNDERTE von alte Template´s mit meinen alten MacBook mit High Sierra öffen und dann als Pages abspeichern. Das funktioniert mit den Pages 12.1 -
Kennt sich jemand mit " Automator" aus? Könnte man hierfür eine Routine schreiben?
1. Template auswählen
2. Name --> CMD+C
3. Datei öffen
4. Datei sichern als.. (Pages)
5. Name eintragegen --> CMD+V
6. Abspeichern in eine Ordner
7. Nächste Datei (Template) -
Probier mal dieses AppleScript…
Den code in ScriptEditor.app kopieren und starten. Es konvertiert alle benutzerdefinierten Templates als .pages Dateien in einen Ordner UserTemplates auf dem Schreibtisch
⚠️Das Script funktioniert nicht mit neueren Systemversionen wegen fehlender Zugriffsrechte, aber mit High Sierra müsste es gehen
Show Plain Text- 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
-
Syntaxfehler: Zeilenende, etc. erwartet, aber „tell“ gefunden. (Version: 2.10)
Bei der Version 2.8 das gleiche Problem -
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
-
-