1 ---------------------------------------------------------------------------------
 
   2 -- Name:        docs/mac/SetXMLCreator.applescript
 
   3 -- Purpose:     Sets the creator types of the XML files
 
   8 -- Copyright:   (c) 2004 Ryan Wilcox
 
   9 -- Licence:     wxWindows licence
 
  11 -- Press the run button and select the file you need (or, alternatively, save the
 
  12 -- script as an application drag-and-drop the files on top of it).
 
  13 ---------------------------------------------------------------------------------
 
  16     set myFile to choose file
 
  23     repeat with each in fileList
 
  25         tell application "Finder"
 
  26             if name of each contains "M5" or name of each contains "M7" or name of each contains "M8" then
 
  27                 set creator type of each to "CWIE"
 
  28                 set file type of each to "TEXT"