• 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
Re: Leopard Scripting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Leopard Scripting question (From: Matt Deatherage <email@hidden>)

  • Prev by Date: Re: Leopard Scripting question
  • Next by Date: Re: iCal script alarms?
  • Previous by thread: Re: Leopard Scripting question
  • Next by thread: INDESIGN CS3 5.0.3: Scripted UI Dialogs Not Working
  • Index(es):
    • Date
    • Thread