Hallo zusammen.
Das Skript "Rechtschreibreform 2006" ist ja Gold wert. Leider funktioniert es nicht bei Texten, die unformatiert sind (Selten der Fall, aber die Textchefin stolpert dann halt über Rechtschreibung 1996 - das muß ja nicht sein..)
Kann man das Skript ausweiten?
ungefähr so?
property theLanguage : "Deutsch: Rechtschreibreform 2006"
tell application "Adobe InDesign CS3"
set mylanguage to the first language with vendors whose name is theLanguage
tell document 1
repeat with mystyle in all paragraph styles
tell mystyle
try
set applied language to mylanguage
end try
end tell
end repeat
repeat with mystyle in all text frames
tell mystyle
try
set applied language to mylanguage
end try
end tell
end repeat
repeat with mystyle in all character styles
tell mystyle
try
set applied language to mylanguage
end try
end tell
end repeat
end tell
end tell
Zum Vergleich das Originalskript:
property theLanguage : "Deutsch: Rechtschreibreform 2006"
tell application "Adobe InDesign CS3"
set mylanguage to the first language with vendors whose name is theLanguage
tell document 1
repeat with mystyle in all paragraph styles
tell mystyle
try
set applied language to mylanguage
end try
end tell
end repeat
repeat with mystyle in all character styles
tell mystyle
try
set applied language to mylanguage
end try
end tell
end repeat
end tell
end tell
Leider erhalte ich die Fehlermeldung: Es wurde "Zeilenende" erwartet, aber ein "Klassenname" (Pluralform) erhalten.
Vielen Dank für eine Rückmeldung.