Re: Scripting "Startup Disk" revisited
Re: Scripting "Startup Disk" revisited
- Subject: Re: Scripting "Startup Disk" revisited
- From: Axel Luttgens <email@hidden>
- Date: Sun, 17 Nov 2002 01:36:02 +0100
David Glass wrote:
>
On 11/16/02 15:17, "Alatorre, Michael" <email@hidden> wrote:
>
>
>
>
>do shell script "/usr/sbin/bless -folder9 '/System Folder' -setOF" password
>
>[your password] with
>
>administrator privileges
>
>
>
>
>
>
What is "/usr/sbin/" for?
>
That's a matter relevant to the shell, as well as to its corresponding
defaults, you're using.
When you call "do shell" from ApppleScript, you are in fact accepting a
lot of defaults; for instance, with MacOS 10.1.x, you are invoking zsh
(emulating sh) with paths such as /usr and /usr/bin (don't remember
exactly, but just check).
That is, /usr/sbin/ is needed to exactly tell the shell where to find
the command you want to use.
>
>
As indicated in previous post I used "sudo bin". I am wary (in a general
>
Unix way) of doing the "sudo" thing, but I couldn't get it to run correctly
>
any other way.
>
>
>
That could be another matter.
I remember having faced a different behavior between MacOS 10.1.4 and
10.1.5, as far as the implementation of sudo was concerned.
But this could lead to an OT thread; don't hesitate to ask if needed.
HTH,
Axel
_______________________________________________
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.