• 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
osascript, root vs other users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

osascript, root vs other users


  • Subject: osascript, root vs other users
  • From: James Reynolds <email@hidden>
  • Date: Thu, 8 Aug 2002 13:39:55 -0600

I am executing this command:

sudo osascript -e 'tell application "Internet Explorer" to Activate"

I would think that Internet Explorer would launch as root user, but no. See output of ps command:

% ps -axo user,command | grep Explorer
root osascript -e tell application "Internet Explorer" to Activate

% ps -axo user,command | grep Explorer
james /Applications/Internet Explorer.app/Contents/MacOS/Internet Explorer /Applications/Internet Explorer.


I am curious how an osascript command executed by root launches IE as the current logged in user. Is this something I can rely on always happening?

--

Thanks,

James Reynolds
University of Utah
Student Computing Labs
email@hidden
801-585-9811
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Way to get user's IP address into Applescript variable?
  • Next by Date: Re: osascript, root vs other users
  • Previous by thread: Re: Way to get user's IP address into Applescript variable?
  • Next by thread: Re: osascript, root vs other users
  • Index(es):
    • Date
    • Thread