Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7915531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:29:10+00:00 2026-06-03T14:29:10+00:00

I have this in my (first) OSX Lion Widget. var test = widget.system(/Users/Me/testscript,null); test.outputString

  • 0

I have this in my (first) OSX Lion Widget.

var test = widget.system("/Users/Me/testscript",null);

test.outputString is undefined and test.errorString is sth. like that

DashboardClient[xxxxx:xxx] *** NSTask: Task create for path '/Users/Me/testscript' 
failed: 22, "Invalid argument". Terminating temporary process.

testscript contains only an echo "here"

As far as I understand via google… NSTask is somehow wrapping my call and it expects an actual executable binary.
But, is there a way to execute this bash-script-executable from within a widget just as it is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:29:11+00:00Added an answer on June 3, 2026 at 2:29 pm

    In order for a shell script to be called like a binary, it needs a ‘hashbang’ as the first line of the file:

    #!/bin/bash
    

    which tells the OS which interpreter to use for the script. Without it the OS will get confused about what to do with the file, giving you the error you’ve seen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this select insert into test(t_name) (select users.first_name || '_' || users.last_name ||
Using Dozer to map two objects, I have: /** /* This first class uses
I have this code: tableList = [[NSMutableArray alloc] initWithObjects:@First View,@Second View,nil]; I have synthesized
i have two arrays like this first array Array ( [0228] => Array (
I have this middleware which is the first: class RedirectIt require net/https require uri
I have this file which I need to read the first bytes to check
I have this code. Only the first drawLine gets drawn and the rest 2
I currently have this code which reads the first field in a database record
I have this function called ProperCase that takes a string, then converts the first
I have this application with 2 classes, in the first class I define a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.