• 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
Re: Talking to apps running under different users' accounts on same machine?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Talking to apps running under different users' accounts on same machine?


  • Subject: Re: Talking to apps running under different users' accounts on same machine?
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 05 Jun 2011 12:27:55 +0200

Le 2 juin 2011 à 22:46, email@hidden a écrit :

> Is there any way to script apps running under different users' accounts on same machine?
>
> For example, if I wanted to tell safari in a background account to show the same page I am looking at.

Hello Brennan,

A quick trial here on 10.6.7 tends to indicate that this is possible thru remote events.

This is what I did (quick recipe): if not already done, activate Remote Apple Events on your machine (Preferences -> Sharing), open a session for user "someguy" and launch Safari, go back to your session, run following in AppleScript Editor:

	tell application "Safari" of machine "eppc://someguy@127.0.0.1"
		tell front window
			tell first tab
				set URL to "http://www.microsoft.com/";
			end tell
		end tell
	end tell

HTH,
Axel

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Talking to apps running under different users' accounts on same machine? (From: email@hidden)

  • Prev by Date: Converting ColorPicker values into 24-bit color values
  • Next by Date: Re: Load Script
  • Previous by thread: Talking to apps running under different users' accounts on same machine?
  • Next by thread: Re: For some strange reason
  • Index(es):
    • Date
    • Thread