thank you very much for your help
osascript understands arguments now (from 10.4)
so here is what I did:
DiffCodewarrior.scpt looks like
on run argv try set theAlias1 to alias POSIX file (item 1 of argv) set theAlias2 to alias POSIX file (item 2 of argv) on error errMsg number errnum return errMsg & errnum end try tell application "CodeWarrior IDE" Compare Files theAlias1 to theAlias2 activate end tell end run
I created cwdiff shell script:
#!/bin/sh osascript /Users/dima/bin/DiffCodewarrior.scpt "$1" " $2"
and it works
thanks again for your help
PS: after I got to work XCode with cwdiff I understood what was the problem with CW's command line tool cmdide
the following shell script works too
#!/bin/sh cmdide -diff "$1" "$2"
so problem was that I didn't use quotes
|