• 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: how to tell application using psn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to tell application using psn


  • Subject: Re: how to tell application using psn
  • From: email@hidden
  • Date: Tue, 9 Sep 2008 22:37:59 +0200

At 8:54 PM +0100 9/9/08, has wrote:
I've read that this is doable, but I can't find a single example.  Can
someone show me how?   I just want to execute a simple script like

tell application N
   name of windows
end tell

where N is the psn of the app.

PSNs not so much. You can target apps by PIDs in AS, but that involves messing about with eppc URLs and Remote Apple Events which introduces authentication/security issues.

I must confess that I don't remember the exact formula (I published it once on this list, though), but it's as Has has said. It's something like tell app "SomeApp" of machine "eppc://someURL?pid=SomePSN" but if I remember correctly it won't work with 127.0.0.1 or localhost. eppc doesn't connect to self.


Otherwise (that is, between different machines), it works flawlessly, except that (I think) you cannot use Keychain because it's confused, it thinks "eppc" is really "cppe", and that hangs the caller app.

Emmanuel
_______________________________________________
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
  • Follow-Ups:
    • Re: how to tell application using psn
      • From: Philip Aker <email@hidden>
References: 
 >Re: how to tell application using psn (From: has <email@hidden>)

  • Prev by Date: Re: how to tell application using psn
  • Next by Date: Re: how to tell application using psn
  • Previous by thread: Re: how to tell application using psn
  • Next by thread: Re: how to tell application using psn
  • Index(es):
    • Date
    • Thread