Re: Leopard Scripting question
Re: Leopard Scripting question
- Subject: Re: Leopard Scripting question
- From: "John C. Welch" <email@hidden>
- Date: Tue, 26 Aug 2008 16:28:24 -0400
- Thread-topic: Leopard Scripting question
On 8/26/08 2:58 PM, "Matt Deatherage" <email@hidden> wrote:
>> On 8/26/08 2:12 PM, "David G. Kahn" <email@hidden> wrote:
>>
>>> tell application "Finder" mount volume
>>> "afp://user:email@hidden/Student Share" end tell
>>
>> FYI, you donĀ¹t need the Finder for that.
>
> ...unless the script normally runs inside ARDAgent or SecurityAgent's
> context, and would therefore no longer be allowed to use commands
> from Standard Additions like "mount volume", if the client is running
> Security Update 2008-005 or later.
>
> Right?
Um...not really. First, if there's no user logged in, and the Finder version
DOESN'T fail, you have extreme problems in terms of a root finder session
now working. That's a bad thing.
Guess what happens when you run osascript -e "tell application \"Finder\" to
activate" via "Send Unix Command" at the login window as root?
That's right. No bloody sense at all. "OH, okay, even though there's no
actual login, I'll just start a root Finder session".
Someone's getting a beating here.
>
> I think the more precise statement now is "you _normally_ don't need
> the Finder for that, but if you're sure it hasn't been replaced with
> something like Path Finder, the tell block doesn't hurt."
Ironically, even though the stupid above works, trying mount volume sans the
finder at the loginwindow as root fails, while trying it in the correct user
context with a valid login does work, so no, you still don't need the
Finder.
Unless you want root Finder sessions. Then it works GREAT.
Idiots.
--
Braccae illae virides cum subucula rosea et tunica Caledonia-quam elenganter
concinnatur!
(Those green pants go so well with that pink shirt and the plaid jacket!)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden