Forenindex » Programme » Print/Bildbearbeitung » Adobe InDesign » Word Counter Problem

Word Counter Problem

M_Schneider
Beiträge gesamt: 2

25. Mär 2003, 09:19
Bewertung:

gelesen: 1297

Beitrag als Lesezeichen
Hallo an alle hier.

Ich habe ein kleines Problem mit dem
WordCounter-Script von InDesign 2.0.2.
Ich bekomme jedesmal die Fehlermeldung,
ich solle erst Text markieren.
Egal auf welche Art ich diesen Text markiere,
ob mit Textauswahl oder mit den Auswahlwerkzeugen direkt,
immer die selbe Fehlermeldung.
Vielleicht weiß ja hier jemand bescheid.

Vielen Dank vorab
und mfG

Marcus Schneider

Word Counter Problem

M_Schneider
Beiträge gesamt: 2

25. Mär 2003, 13:12
Bewertung:

gelesen: 1297

Beitrag als Lesezeichen
Hallo nochmal,

anders gefragt:

wie wende ich das WordCounter-Script richtig an?
Anscheinend stehe ich etwas auf dem Schlauch.

Danke.
Marcus Schneider

Word Counter Problem

Anonym
Beiträge gesamt: 22827

21. Aug 2003, 15:08
Bewertung:

gelesen: 1297

Beitrag als Lesezeichen
Habe genau das gleiche Problem.

Normalerweise legst Du einfach ein Script in den Programmodner (dann Unterordner -> Scripts) und es solte laufen.

Bei mir werden auch alle Scripts angezeigt und z.B. AddGuides läuft problemlos.
Das mit dem Word Count klappt aber auch bei mir nicht und zwar weder wenn ich

a) Text markiere/auswähle
b) eine Textbox markiere/auswähle
c) per Direktauswahl in eine Textbox klicke

Klappt das überhaupt bei jemandem?

Word Counter Problem

EssWeh
Beiträge gesamt: 532

22. Aug 2003, 09:47
Bewertung:

gelesen: 1297

Beitrag als Lesezeichen
Hallo Markus, hallo Anonym,

bei mir auffem PC läuft das völlig problemlos, wie eigentlich alle Skripte, etc.

Stefan

Word Counter Problem

Lukas M.
Beiträge gesamt: 301

25. Aug 2003, 12:08
Bewertung:

gelesen: 1297

Beitrag als Lesezeichen
Dieser AppleScript Skript funktioniert tadellos:

<code>

-- this script counts the characters and words in the selected text
-- select a range of text with the text tool and only that range is counted
-- select a text frame or have a simple insertion point in a story
-- and all words in that story are counted.

tell application "InDesign 2.0.2"
try
set thesel to object reference of selection
if class of thesel is text frame then
set thesel to object reference of parent story of thesel
else if class of thesel is insertion point then
set thesel to object reference of parent story of parent text frame of thesel
else if class of thesel is not in {text, character} then
error
end if
on error
activate
display dialog "Wähle einen Textbereich oder einen Textrahmen eines Textabschnitts aus." with icon 2 buttons "Abbrechen" default button 1
return
end try
activate
display dialog ((count of characters of thesel) as string) & " Zeichen" & return & ((count of words of thesel) as string) & ¬
" Wörter" with icon 1 buttons "OK" default button 1
end tell

</code>

Der Originalskript ist nicht von mir, ich habe ihn jedoch "kosmetisch" ein wenig modifiziert und eingedeutscht.
--
Lukas | http://www.machata.ch