Re: CodeWarrior Question by Newbie
Re: CodeWarrior Question by Newbie
- Subject: Re: CodeWarrior Question by Newbie
- From: Richard 23 <email@hidden>
- Date: Fri, 3 Nov 2000 11:40:45 -0800
>
This is hopefully a simple question. I'm attempting to use the Create
>
Project/from stationery command in CodeWarrior and am getting nowhere. I'm a
>
student and would like to set up a script that creates the same type of
>
project again and again as i learn how to program in C/C++.
>
I get the error msg CodeWarrior got an error "foo" doesnt understand
>
the create project message.
>
This is the dictionary entry for Create Project...
>
>
Create Project: Create a new project file
>
Create Project alias -- New project file specifier
>
[from stationery alias]
Ok. I don't have a copy of CodeWarrior (installed). I might have a demo
somewhere in my archives to test with but I think I know what's happening.
It seems to me that "alias" and "New project file specifier" don't exactly
match. An alias is an existing file so if you plug in a path string after
the term alias (as the dictionary seems to suggest), you'll get an error
unless the file exists.
But file specifier suggests a file system specification which would go
something like this:
Create Project file "Macintosh HD:Projects:foo" from stationery statFile
Hopefully that will work for you.
Oh you could also use "new file" to name and locate the new project, eg,
set newProj to new file with prompt "Create New Project:"
set statFile to choose file with prompt "Select Project Stationery:"
of type "MMPr"
Create Project newProj from stationery statFile
Well I found my CodeWarrior and dusted it off. This actually worked:
set newProj to new file with prompt "Create New Project:"
tell application "CodeWarrior" to Create Project newProj
although it didn't seem to like the stationery I selected with the "MMPr"
file type. Perhaps that was the wrong type but I'll leave that to you to
sort out.
R23