• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FileMerge substitution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMerge substitution


  • Subject: Re: FileMerge substitution
  • From: Dmitry Markman <email@hidden>
  • Date: Wed, 11 May 2005 16:35:16 -0400
  • Resent-date: Wed, 11 May 2005 16:50:12 -0400
  • Resent-from: Dmitry Markman <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: XCode Users <email@hidden>

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




Dmitry Markman

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Using precompiled .class files
  • Next by Date: Code Completion issues?
  • Previous by thread: Re: FileMerge substitution
  • Next by thread: Linking against a non-Framework
  • Index(es):
    • Date
    • Thread