Strange filenames (MacOS X and Text Edit Plus)
Strange filenames (MacOS X and Text Edit Plus)
- Subject: Strange filenames (MacOS X and Text Edit Plus)
- From: email@hidden
- Date: Fri, 12 Apr 2002 12:48:02 +0200
Hi again all,
I am still struggling with MacOS X and Applescript, all kind of strange
things are happening!
The script below (only a part of it) works fine in MacOS 9 and Text Edit
plus, but in MacOS X and the Carbon Text Edit Plus strange things happens.
Instead of replacing the "filename1" with the filename that comes from the
script "PH_1.2_9812042 it uses "PH_1.2_981204cxx<caron><breve>G`p$d". So,
where does "cxx<caron><breve>G`p$d" come from?
Then looking in the Apple event log the filename is OK - "PH_1.2_981204",
is this some kind of UNIX gibberish?
copy "Macintosh HD:Script_folder:Photo_and_illu_html_files:" as text to
the_vol
set searchFolder to (the_vol & "temp_folder:")
set myList to list folder alias searchFolder without invisibles
repeat with myfilename in every item of myList
tell application "Tex-Edit Plus"
tell window 1
replace looking for "filename1" replacing with
myfilename
end tell
end tell
end repeat
The purpose of this script is to open an master text edit plus document and
search for "filename1" etc. and replace the text with the filenames in
different folders.
Anyone out there who knows anything about this?
_______________________________________________
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.