Changing text in a text file without the use of TextEdit

I have a file (realmlist.wtf) inside it says something like “XXXX” I want to be able to open that file and change the text “XXXX” to whatever the user specifies in a the Dialog Box. Is this possible?
Thanks,
Valmilu.

rtf? plain text? word format? etc…

(plain text being the easiest to deal with)

It’s actually a .wtf

scnr WTF is wtf ?

Playing on a private server?

set realm_list_path to ((path to applications folder) as string) & "World of Warcraft:realmlist.wtf"
set new_logon_realm to text returned of (display dialog "Please enter the new logon server:" default answer "")
set fileRef to (open for access file realm_list_path with write permission)
set eof fileRef to 0
write "set " & new_logon_realm & " 
" to fileRef
close access fileRef

Nah making an app for private server people, I made this app too for WoW

http://www.mmowned.com/forums/bots-programs/18406-iwow-mac-os-x-version-5-a.html

Take a look :slight_smile:

grr, how I loathe making accounts on forums to see content LOL :smiley:

O lol just go to the site the http://iwow.freehostia.com

Manually moved: http://bbs.applescript.net/viewtopic.php?id=21046