Thanks for your reply, Rob

I found the following site had the same problem (using an Apple
Script) to mine.
http://lists.apple.com/archives/cocoa-dev/2003/Dec/msg00563.html


In my App A I also use the Security Framework to authenticate the user
to elevate privilege because my App B must be run by admin user.

But I found the question is that even if I elevate privilege from A
user(administrator) to the same A user, the Apple Script is still
failed. Of course, when I modified my app A to make it unauthenticate
user, the Apple Script works fine.

so I'm not sure whether the Security Framework refuse to run an
AppleScript or not. I don't know.



2008/12/9 Rob Keniger <[EMAIL PROTECTED]>:
>
> On 09/12/2008, at 4:55 PM, xiaobin wrote:
>
>> But I only want to know why it doesn't work by using the apple script.
>> My old applications writing in pure object-c works well in the apple
>> script.
>> I'm afraid that if something is damaged or others in my os, the error
>> may be have influence on my other Apps.
>> So anyone can give me a hit about the error.
>
>
> Good question, I don't know. Your code works perfectly for me here.
>
> --
> Rob Keniger
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/leptonw%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to