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

setuid to root App cannot compile NSAppleScript


  • Subject: setuid to root App cannot compile NSAppleScript
  • From: Lorenzo <email@hidden>
  • Date: Thu, 11 Dec 2003 10:35:34 +0100

Hi list,
I use to make my application run an AppleScript like this:
----------------
tell application "Finder"
beep
end tell
----------------
If I login on my machine as simple user (administrator), it works fine.
If I login on my machine as "root" user, it works fine.
If I login on my machine as simple user (administrator), and I run my
application with setuid = 0 - that is with root privileges -
the AppleScript doesn't compile. It returns the error -2709

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

What should I do in order to fix the problem?
Thank you.

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: setuid to root App cannot compile NSAppleScript
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: reading XML in Cocoa ?
  • Next by Date: Can't open Library WHY??
  • Previous by thread: NSConnection on same machine between different users (via 10.3 fast switching)
  • Next by thread: Re: setuid to root App cannot compile NSAppleScript
  • Index(es):
    • Date
    • Thread