• 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
Strange filenames (MacOS X and Text Edit Plus)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: count files in folder (MacOS X)
  • Next by Date: Re: Path to ~/
  • Previous by thread: Re: OS X Window toggle ToolBar?
  • Next by thread: Check POP3 for new mail
  • Index(es):
    • Date
    • Thread