Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 17:14, Jean-Daniel Dupas wrote: > > > You can pretty format it using xmllint command line tool. > > xmllint --pretty 1 yourfile.xml > your_formatted_file.xml > I knocked up a utility to do it but thanks anyway. Once I could see where the problem was, I fixed the output

Re: Scripting Bridge Questions

2015-06-25 Thread Willeke
Hi, Can you open the dictionary in Scripteditor? Is the application launched when you run sdef or open the dictionary in Scripteditor? > I can’t seem to find an editor that will open it Try Xcode or TextWrangler with soft wrap switched on in the preferences. Or Sdef Editor, ignore the warnings

Re: Scripting Bridge Questions

2015-06-25 Thread Jean-Daniel Dupas
> Le 25 juin 2015 à 15:57, Dave a écrit : > > >> On 25 Jun 2015, at 14:48, Bill Cheeseman wrote: >> >> >>> On Jun 25, 2015, at 9:13 AM, Dave wrote: >>> >>> I get this error: >>> >>> sdp: enumerator of enumeration "e183": missing required "name" attribute. >> >> >> Can you generate the s

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 14:48, Bill Cheeseman wrote: > > >> On Jun 25, 2015, at 9:13 AM, Dave wrote: >> >> I get this error: >> >> sdp: enumerator of enumeration "e183": missing required "name" attribute. > > > Can you generate the sdef file separately, then manually edit it to supply > the

Re: Scripting Bridge Questions

2015-06-25 Thread Bill Cheeseman
> On Jun 25, 2015, at 9:13 AM, Dave wrote: > > I get this error: > > sdp: enumerator of enumeration "e183": missing required "name" attribute. Can you generate the sdef file separately, then manually edit it to supply the "missing required 'name' attribute," and then run sdp on the edited sd

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
On further investigation, the App doesn’t have an .sdef, so, the “sdef” tool, must generate it from the old style ‘aete’ resources. So, the fault could be in either “sdef” or “sdp”. I’ve trying to look at the output from “sdef” but it’s in a horrible format - no line endings, so it’s hard to re

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 14:24, Jean-Daniel Dupas wrote: > That just means you wrote an invalid sdef file in the first place. Really? No kidding?!?!? lol The .sdef file comes with the App I am trying to generate the header file for! ___ Cocoa-de

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
Hi, Is the source code of “sdp” available anywhere? Just a thought. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-adm

Re: Scripting Bridge Questions

2015-06-25 Thread Jean-Daniel Dupas
> Le 25 juin 2015 à 15:13, Dave a écrit : > > >> On 25 Jun 2015, at 13:33, Bill Cheeseman wrote: >> >> >>> On Jun 25, 2015, at 8:09 AM, Dave wrote: >>> >>> That’s the problem, “sdef" and/or “sdp" barf when I try to generate the >>> header file and without the header file you are pretty mu

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 13:33, Bill Cheeseman wrote: > > >> On Jun 25, 2015, at 8:09 AM, Dave wrote: >> >> That’s the problem, “sdef" and/or “sdp" barf when I try to generate the >> header file and without the header file you are pretty much dead in the >> water. > > > I haven't noticed a sp

Re: Scripting Bridge Questions

2015-06-25 Thread Bill Cheeseman
> On Jun 25, 2015, at 8:09 AM, Dave wrote: > > That’s the problem, “sdef" and/or “sdp" barf when I try to generate the > header file and without the header file you are pretty much dead in the water. I haven't noticed a specific description of the failure you're experiencing. Do you get a pa

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 12:34, Sandor Szatmari > wrote: > > I wrote an interface to a third party app using the Scripting Bridge. It > worked pretty good but I had to test the SBApplication object for nil before > accessing it. Periodically it would return nil unexpectedly. Don't know if > t

Re: Scripting Bridge Questions

2015-06-25 Thread Dave
> On 25 Jun 2015, at 00:30, Graham Cox wrote: > > >> On 24 Jun 2015, at 9:22 pm, Dave wrote: >> >> I was wondering if I should just give up now and forget using the Bridge or >> if there’s any chance that I might get a usable header file generated >> somehow. My instincts tell me to give up

Re: Scripting Bridge Questions

2015-06-24 Thread Graham Cox
> On 24 Jun 2015, at 9:22 pm, Dave wrote: > > I was wondering if I should just give up now and forget using the Bridge or > if there’s any chance that I might get a usable header file generated > somehow. My instincts tell me to give up, but if anyone knows better or they > know a better solu

Scripting Bridge Questions

2015-06-24 Thread Dave
Hi All, I’m doing some investigative work using the Scripting Bridge: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ScriptingBridgeConcepts/ScriptingBridgeConcepts.pdf The first step is to use the “sdef” and “sdp” terminal commands to generate header files that can be i