]> git.saurik.com Git - wxWidgets.git/commitdiff
Added Ryan Wilcox's creator type setting script
authorJulian Smart <julian@anthemion.co.uk>
Tue, 30 Mar 2004 08:11:16 +0000 (08:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 30 Mar 2004 08:11:16 +0000 (08:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/mac/SetXMLCreator.applescript [new file with mode: 0644]
docs/mac/install.txt

diff --git a/docs/mac/SetXMLCreator.applescript b/docs/mac/SetXMLCreator.applescript
new file mode 100644 (file)
index 0000000..a9124bf
--- /dev/null
@@ -0,0 +1,40 @@
+---------------------------------------------------------------------------------
+-- Name:        docs/mac/SetXMLCreator.applescript
+-- Purpose:     Sets the creator types of the XML files
+-- Author:      Ryan Wilcox
+-- Modified by:
+-- Created:     2004-03-30
+-- RCS-ID:      $Id$
+-- Copyright:   (c) 2004 Ryan Wilcox
+-- Licence:     wxWindows licence
+--
+-- Press the run button and select the file you need (or, alternatively, save the
+-- script as an application drag-and-drop the files on top of it).
+---------------------------------------------------------------------------------
+
+<begin applescript>
+
+on run
+    set myFile to choose file
+    open ({myFile})
+end run
+
+
+on open (fileList)
+    
+    repeat with each in fileList
+        
+        tell application "Finder"
+            if name of each contains "M5" or name of each contains "M7" or name of each contains "M8" then
+                set creator type of each to "CWIE"
+                set file type of each to "TEXT"
+                
+                log "set"
+            end if
+            
+        end tell
+    end repeat
+end open
+
+</begin applescript>
+
index a662b5ac994e673656d5f709f00799224cd2651b..bb54fd5dc9a9b5b37ce9d3a6f8d8b41d7fcd27c4 100644 (file)
@@ -102,6 +102,7 @@ Several AppleScript files are provided in the docs:mac directory:
   - M5build.applescript to automatically build all samples/demos projects
   - M8xml2mcp.applescript to convert xml files to CodeWarrior 8 projects
   - M8mcp2xml.applescript to convert CodeWarrior 8 projects to xml files
+  - SetXMLCreator.applescript to set correct creator type (see below)
 
 To run the XML to MCP conversion scripts:
 
@@ -111,6 +112,9 @@ takes a while to scan all dirs for the xml files and convert
 them to mcps. If some conversions fail it means an mcp already
 exists (back them up prior to running the script).
 
+To set the correct creator type for importing into CodeWarrior,
+you may need to run SetXMLCreator.applescript.
+
 Apple Developer Tools
 ---------------------