• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Replace å-ä-ö whit applescript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 &ouml; ...........

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.

References: 
 >Replace å-ä-ö whit applescript. (From: Krister Nyman <email@hidden>)

  • Prev by Date: Export Image From FileMaker
  • Next by Date: Re: mutli instances test (was Re: Multi-threaded)
  • Previous by thread: Replace å-ä-ö whit applescript.
  • Next by thread: Mail email to Filemaker
  • Index(es):
    • Date
    • Thread