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: widget.system Function



Please do not use the widget.system synchronously in a shipping widget.  It
is there just for development purposes.

Thanks,
jl

> Ok. I am working on developing a widget which executes the following command
> 
> var commandLoc = widget.system("/usr/bin/which " +
> someUnixCommand,null).outputstring //The someUnixCommand is a variable
> set earlier in the script
> 
> My problem is this; The string returned from this command contains the
> end of line character "\n" which completely messes up the string when
> I try to execute the commandLoc string in a different instance of the
> widget.system call.
> 
> Is there a way in JavaScript to evaluate this string and remove the
> "/n" from the string returned in the widget.system call? I am sure
> that there is some way to do it but I just cannot think of it off the
> top of my head!
> 
> Thanks in advance.

--------------------------------------------------
John Louch         Internet #: 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: 
 >widget.system Function (From: "Jesse Almanrode - JA Computing" <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.