• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
on "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

on "do shell script"


  • Subject: on "do shell script"
  • From: roy whelden <email@hidden>
  • Date: Tue, 11 Feb 2003 11:05:46 -0800

Hello all,
I wonder if there might be a problem with the standard addition "do shell script."

In short, it seems to require the concatenation ("&") sign before it will work correctly.

For example, the instruction --

do shell script "sudo" & " -s" password p with administrator privileges

--works correctly, whereas the instruction --

do shell script "sudo -s" password p with administrator privileges

-- returns the error "command p not found."

There is nothing in the standard additions dictionary entry on "do shell script" to indicate that the first is the correct form and the second is incorrect.

I'm using Script Editor 2.0 beta in OS X 10.2.3

Thanks,
Roy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Saving a document in Safari
  • Next by Date: Re: Saving a document in Safari
  • Previous by thread: Re: Remote Access and Network Setup Scripting problems under OS 9.1
  • Next by thread: Re: on "do shell script"
  • Index(es):
    • Date
    • Thread