Re: OS X Authentification and OSX Power Additions AEShell
Re: OS X Authentification and OSX Power Additions AEShell
- Subject: Re: OS X Authentification and OSX Power Additions AEShell
- From: garbanzito <email@hidden>
- Date: Thu, 20 Dec 2001 12:18:41 -0700
at 2001 12 19, 15:28 -0500, they whom i call email@hidden wrote:
Things go great, until I run an AppleScript in OS X from the installer that
passes some variables to a unix shell command (Using the AEShell1.0b2 OSX
Power Addition to do the launching). Apparently AppleScript is not aware of
the Authentification login that VISE has set up, and my unix commands run
from AppleScript re-prompt the user for their administrator
username/password.
it sounds like when AEShell starts a new shell process to
run commands, that process doesn't inherit administrator
privileges. you have many options, but i have no idea if
they'll work. you could try doing the equivalent with other
AppleScript-to-shell tools:
1) OSX Power Additions,
2) do script with command "xxx" (opens a Terminal window,
but you could hide the Terminal process beforehand ...)
3) do shell script "xxx" (only in the most recent version of
AppleScript)
or have your AppleScript create the contents of the shell
command as a file (a shell script), then let VISE resume
control and from VISE call that shell script the same way
you've been calling other unix commands. you may also need
to set the executable bit on the shell script (chmod +x)
and/or add a first line like #!/usr/bin/sh.
you could even try starting the AppleScript in question via a
shell command (osascript).
--
steve harley email@hidden