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 returns "does not allow calls" in console



Thank you. The problem was in fact an exception. For some reason javascript was not liking one of my function names. I now have widget.system working for opening an executable which contained the shell script I referenced earlier. For some reason my widget just hangs using the code I mentioned earlier.


On May 23, 2005, at 9:36 AM, John Louch wrote:

Hard to say without seeing the code, but it looks like you are throwing an exception before you get to the widget.system call.

The "Object (result of expression connectToServer) does not allow calls. (line: 1)" console message is an js exception being fired.

Thanks,
jl
On May 23, 2005, at 1:47 AM, Clayton Ferris wrote:

I am trying to run a very simple terminal command in my widget. I have AllowSystem set to yes in my info.plist. I have widget.system tied to an onclick event, and watching the console these are properly tied together, however nothing happens. The console reports "Object (result of expression connectToServer) does not allow calls. (line: 1)". My widget.system looks like this: widget.system("/bin/sh /Applications/Wolfenstein\ ET/Wolfenstein\ ET.app/Contents/MacOS/Wolfenstein\ ET +connect 128.242.54.116", null); the result of typing "/Applications/Wolfenstein\ ET/Wolfenstein\ ET.app/Contents/MacOS/Wolfenstein\ ET +connect 128.242.54.116" in terminal launches the program and autoconnects to the ip adress listed. Any ideas on what I am overlooking?

-Clayton Ferris

_______________________________________________
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: 
 >widget.system returns "does not allow calls" in console (From: Clayton Ferris <email@hidden>)
 >Re: widget.system returns "does not allow calls" in console (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.