Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synchronous Operation



John, how do I open a bug and where do I find the crash report?
Here is the code.  This widget is actually an address book that does a
search against open directory for contact info.

var command = '/usr/bin/ldapsearch -LLL -z 10 -S sn -h "ldap.mycompany.org"
-b "cn=users,dc=mycompany,dc=org" -x "(&(|(sn=*"' + qstring +
'"*)(givenname=*"' + qstring + '"*))(!(sn=Administrator)))" givenName sn
telephoneNumber mobile facsimileTelephoneNumber buildingName mail';

var output = widget.system(command, null).outputString;

document.getElementById("results").innerHTML = output;


If the output is larger than a certain size the widget will just hang.  You
will notice above I've included the '-z 10' option to limit the results to
10 records - because of this bug.  BTW, I don't actually dump the output
directly to the element, I actually run it through a parsing routine to
format it neatly in three columns.  If anyone needs this javascript let me
know.


> From: John Louch <email@hidden>
> Date: Tue, 10 May 2005 10:48:06 -0700
> To: Mike Hall <email@hidden>, Nick Takayama
> <email@hidden>
> Cc: Dashboard <email@hidden>
> Subject: Re: Synchronous Operation
> 
> Please open a bug on this issue, and send us sample code if you can.  Put
> the crash report in the bug please.
> 
> Thanks,
> jl
> 
>> I'd like to avoid going down the objC plugin route if possible, but still a
>> good suggestion if it comes to that.
>> 
>> On May 9, 2005, at 10:18 PM, Nick Takayama wrote:
>> 
>>> I ran into the same thing with one of my widgets, using a widget.system call
>>> to osascript.
>>> The answer in my case was to compile an Objective-C class that called
>>> NSAppleScript.
>>> So in your case you may want to examine creating an Objective-C plugin that
>>> uses the Java bridge to obtain its data.
>>> 
>>> Nick
>>> 
>>> On 09/05/2005, at 10:34 AM, Mike Hall wrote:
>>> 
>>>  
>>>> I'm running into the exact same issue. Too many lines to stdout and the
>>>> widget crashes :(
>>>> 
>>>> 
>>>> 
>>>> -MH
>>>> On May 9, 2005, at 8:00 AM, Todd Carver wrote:
>>>> 
>>>>  
>>>>> I have output coming from stdout which is generated by a Java class.  When
>>>>> I run the class in Terminal the output comes back fast and looks correct
>>>>> everytime.  However, it seems that once the output goes past a certain
>>>>> size
>>>>> the widget will no longer display it (using element.innerHTML = output)
>>>>> but
>>>>> instead just hang and basically crash.  Is there a size limit on the
>>>>> JavaScript var that receives the outputString or something?  Thanks in
>>>>> advance.
>>>>> 
>>>>> Todd
>>>>>  _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Dashboard-dev mailing list      (email@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> 
http://lists.apple.com/mailman/options/dashboard-dev/michael.hall%40critte>>>>>
r
>>>>> pixstudios.com
>>>>> 
>>>>> This email sent to email@hidden
>>>>>  
>>>> 
>>>>  _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Dashboard-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
>>>> 
>>>> This email sent to email@hidden
>>>>  
>>> 
>>>  
>> 
>> 
>> 
>>  
>> -MH
>>   
>> 
>> 
>> 
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Dashboard-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
>> 
>> This email sent to email@hidden
> 
> 
> --------------------------------------------------
> John Louch         Internet #: email@hidden
> (805) 541 2965
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
> 
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Synchronous Operation (From: John Louch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.