Re: Replace å-ä-ö whit applescript.
Re: Replace å-ä-ö whit applescript.
- Subject: Re: Replace å-ä-ö whit applescript.
- From: Emmanuel <email@hidden>
- Date: Mon, 10 Nov 2003 20:17:25 +0100
At 12:42 AM +0100 10/11/03, Krister Nyman wrote:
>
Hello !
>
>
I wonder how I can replace letter e-d-v in a text document made by
>
"Skriv Text"
>
that is the program that comes whit OS 9 / I don4t now the English word
>
for it,
>
I think it is Simple Text.
>
>
try
>
open for access file "App:QK Sekvens Skriv Text doc.:01" with write
>
permission
>
set eof of file "App:QK Sekvens Skriv Text doc.:01" to 0
>
set clip_data to the clipboard
>
write clip_data to file "App:QK Sekvens Skriv Text doc.:01"
>
close access file "App:QK Sekvens Skriv Text doc.:01"
>
end try
>
>
that makes a document from clipboard, but I want to change the letters
>
e-d-v
>
to ö ...........
There are "plain vanilla" solutions (= solutions with no third-party software) to change a character into another one however that's many lines and if you don't mind using a (free) extension (namely, the Satimage osax), it's simpler to use its "change" verb:
I give an example which changes "a" into "A" because this list won't transmit the accented characters (except in the Subject, of course :-).
---------------- untested
set clip_data to the clipboard
set theChanged to {"a","b","c"}
set theReplaced to {"A","B","C"}
set clip_data to (change theChanged into theReplaced in clip_data
[etc.]
------------------
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.