• 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: controlling remote application question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controlling remote application question


  • Subject: Re: controlling remote application question
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 10 May 2004 13:17:00 -0700

On May 10, 2004, at 11:41 AM, Steve Roy wrote:

On May 10, 2004, at 12:37 PM, Christopher Nebel wrote:

when you send a command to a remote application do you use the
application name or the process name in the tell?

It's the process name, which can be different than the file name for a bundled application. We'd like to correct this, since it's difficult to determine the process name in some cases, but there isn't any API to do so currently.

By "difficult", do you mean impossible? I would like to do something about this problem in my Mac Remote Control application: <http://www.roydesign.net/macremotecontrol>. One way might be to go and look in the Info.plist file of the application bundle. Or is there a slightly easier way, as with 'do shell script' or something?

It's not impossible by any means, but it's far from obvious for a normal user. For a bundled application, the process name winds up being the name of the actual executable file. For instance, the relevant bits of Mail look like this:

Mail.app/
Contents/
MacOS/
Mail <-- the executable.

The name of the executable is usually the same as the bundle name minus the extension, but if it's different, it's in the Info.plist under CFBundleExecutableName. For what it's worth, this problem didn't occur in classic Mac OS because it's unique to bundles, which didn't exist then.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.


  • Follow-Ups:
    • Re: controlling remote application question
      • From: Steve Roy <email@hidden>
References: 
 >controlling remote application question (From: trinko <email@hidden>)
 >Re: controlling remote application question (From: Christopher Nebel <email@hidden>)
 >Re: controlling remote application question (From: Steve Roy <email@hidden>)

  • Prev by Date: Re: Record Access osax
  • Next by Date: Re: Record Access osax
  • Previous by thread: Re: controlling remote application question
  • Next by thread: Re: controlling remote application question
  • Index(es):
    • Date
    • Thread