Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Applescript with codewarrior

 
   Mac (Home) -> Programmer Code RSS
Next:  Building x86 Mac code with CodeWarrior 9.4?  
Author Message
babu

External


Since: Aug 09, 2005
Posts: 1



(Msg. 1) Posted: Tue Aug 09, 2005 5:51 am
Post subject: Applescript with codewarrior
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

I am new to the apple script. I want to write an AppleScript that opens
a CodeWarrior and creates new .mcp (project file) and apply some
settings to the project file. I don't know whether its possible or
not.. Can someone guide me how to do it.

Thanks in advance.
Back to top
Login to vote
Robert

External


Since: Jul 25, 2005
Posts: 7



(Msg. 2) Posted: Wed Aug 10, 2005 9:14 am
Post subject: Re: Applescript with codewarrior [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Create a new project file:

Create Project "users:myhome:projs:NewProj.mcp" from stationery alias
"where:I:keep:stationery:stationery.mcp"

Apply some settings:

Access paths:
on AppendAccessPath(aPath, isRecursive, isUserPath)
tell application "CodeWarrior IDE"
if (aPath does not end with ":") then set aPath to aPath & ":"

set aPath to POSIX path of aPath
set pathsToAdd to {{name:aPath, recursive:isRecursive,
origin:absolute, format:Unix Path}}
if isUserPath then
Set Preferences of panel "Access Paths" to {User Paths:pathsToAdd}
else
Set Preferences of panel "Access Paths" to {System Paths:pathsToAdd}
end if
end tell
end AppendAccessPath


Change target:

set the current target of project document 1 to target targetIndex
of project document 1

Change the preprocessor text:

Set Preferences of panel "C/C++ Preprocessor" to {Prefix Text:""}

Turn CVS on:

Set Preferences of panel "VCS Setup" to {VCS Active:true, Connection
Method:"mwCVS"}

Make sure and wrap all of the above in:
tell app "Codewarrior IDE"
...
end tell

For more, in Script Editor, open the dictionary of the Codewarrior
application.
Feel free to email me.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
CodeWarrior 9.5 - Where can I download it? Thanks Felix

Codewarrior 9.5 and - Hi, I'm using Codewarrior 8 and Codewarrior 9 (9.5). In version 9.5, when debugging, before the application starts, Codewarrior spends a lot of time "caching directories". After the application stops, it spends again a lot of time "cachin...

Static library in Codewarrior - Hello, Can some one clarify me if the way I am building static libs in Metrowreks Codewarrior7.0 is correct? File-->New-->Project tab -->NetwareStationary-->Projectname-->OK-->Server-->NKS-Libc-->Generic C++ Select output type ...

Codewarrior 8 for Mac: trouble in installation - I am trying to install Codewarrior 8 for Mac OS X (10.3.4) and the program exits abnormally. I read in the instructions that you can do a manual installation by copying certain directories from the CD-ROM to hard disk. Although this works, it is..

Latest News on CodeWarrior 10? - Hi, At MacHack, Metrowerks announced their plans for the final release for their Mac compiler, expected to be released in the Fall. Being mid-October, I figured that we must be getting closer. Are things still on schedule for this release in the next....
       Mac (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact