Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

Try to make a tar file with widget.system

Author Message
dE



Joined: 14 Apr 2005
Posts: 7

Posted: Mon Apr 25, 2005 - 10:57 am    Post subject: Try to make a tar file with widget.system Reply with quote

Hi.

I try to make a tar file with widget.system. My code is like this:

Code:
    var obj = widget.system("/usr/bin/tar -cf /Volumes/PORSCHE\ 1/Users/dirkeinecke/Desktop/archiv.tar /Volumes/PORSCHE\ 1/Users/dirkeinecke/Desktop/dirk/*", null);
    output = obj.outputString;
   document.getElementById("infoLabel").innerText =  output;


Problem 1: No tar file was created
Problem 2: the value for outputString is "undefined"

btw: the command in widget.system is working fine in the Terminal...

What's going wrong?

greetings
Dirk Einecke
View user's profile Send private message Send e-mail Visit poster's website Widgets
sean



Joined: 22 Apr 2005
Posts: 67
Location: Duluth, MN

Posted: Mon Apr 25, 2005 - 11:43 am    Post subject: Reply with quote

Hi Dirk,

Do you have the AllowSystem key (BOOL) set in the widget's Info.plist file? See the Dashboard Programming Guide section on Security.
View user's profile Send private message Send e-mail Visit poster's website Widgets
dE



Joined: 14 Apr 2005
Posts: 7

Posted: Tue Apr 26, 2005 - 1:34 am    Post subject: Reply with quote

Hi,

sean wrote:
Do you have the AllowSystem key (BOOL) set in the widget's Info.plist file? See the Dashboard Programming Guide section on Security.


...sure:

Code:
   <key>AllowFileAccessOutsideOfWidget</key>
   <true/>
   <key>AllowSystem</key>
   <true/>
   <key>AllowFullAccess</key>
   <true/>


It seems that there is a other problem.

greetings
Dirk Einecke
View user's profile Send private message Send e-mail Visit poster's website Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group