Re: Compiling NSAppleScript with getuid = 0
Re: Compiling NSAppleScript with getuid = 0
- Subject: Re: Compiling NSAppleScript with getuid = 0
- From: Lorenzo <email@hidden>
- Date: Fri, 16 Apr 2004 15:25:19 +0200
Good idea.
I have got the error code through the dictionary and it returned
errOSACantGetTerminology = -2709,
But this is not so helpful to me. How to allow the AppleScript run even when
my application runs with uid = 0?
Best Regards
--
Lorenzo
email: email@hidden
>
From: "A.M." <email@hidden>
>
Date: Fri, 16 Apr 2004 14:50:16 +0200
>
To: Lorenzo <email@hidden>
>
Subject: Re: Compiling NSAppleScript with getuid = 0
>
>
Why don't you check the actual error returned from
>
compileAndReturnError instead of ignoring it?
>
>
On Apr 16, 2004, at 2:13 PM, Lorenzo wrote:
>
>
> Hi,
>
> whenever I run my application with the getuid = 0 (the user is root), I
>
> cannot compile this AppleScript
>
> --
>
> BOOL ok;
>
> NSAppleScript *asBeep = [[NSAppleScript alloc]
>
> initWithSource:@"tell
>
> application \"Finder\" \n beep \n end tell"];
>
> ok = [asBeep compileAndReturnError:nil];
>
> if(!ok) NSLog(@"Cannot compile the AppleScript asBeep");
>
> --
>
> Instead, when getuid != 0 it compiles and run very well. Why?
>
>
>
>
>
> Best Regards
>
> --
>
> Lorenzo
>
> email: email@hidden
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
>
>
>
>
>
>
,,,,,,,,,,,,,,,,,,,,,,,,,,,
>
AgentM
>
email@hidden
>
,,,,,,,,,,,,,,,,,,,,,,,,,,,
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.