• 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
root user cannot compile NSAppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

root user cannot compile NSAppleScript


  • Subject: root user cannot compile NSAppleScript
  • From: Lorenzo <email@hidden>
  • Date: Wed, 10 Dec 2003 10:04:07 +0100

Hi list,
I login on my machine as simple user (administrator) and I run my
application with the root privileges (geteuid() == 0);

It works fine, very fine, except that when I try to compile even a simple
AppleScript like:
----------------
tell application "Finder"
beep
end tell
----------------
it gives me error -2709

I do this:
as = [[[NSAppleScript alloc] initWithSource:asText] autorelease];
ok = [as compileAndReturnError:&asError];

When I run my application with the root privileges, ok is always NO.
When I run my application as simple user, ok is always YES. It works all the
time.

What should I do in order to fix the problem?


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.

  • Follow-Ups:
    • Re: root user cannot compile NSAppleScript
      • From: Chris Garaffa <email@hidden>
  • Prev by Date: Is there a Java version of SGDataProc?
  • Next by Date: Strange Error: "NSApplication Creating more than one Application"
  • Previous by thread: Re: NSView subclass, contextual menu, mouse click...
  • Next by thread: Re: root user cannot compile NSAppleScript
  • Index(es):
    • Date
    • Thread