• 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: Using Script Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Script Editor


  • Subject: Re: Using Script Editor
  • From: email@hidden
  • Date: Sat, 26 Apr 2008 02:04:50 +0200

At 4:29 PM -0700 4/25/08, Stan Cleveland wrote:
On 4/25/08 3:32 PM, "Raymond P Reedy" wrote:

 > In the MacTech article "Converting VBA Macros to AppleScript in
 > Microsoft Office" by Paul Berkowitz on Page 75, he writes at the end
 > of the sixth paragraph...

Just in case, here are two ways I would try to address one of two (or more :-) applications with the same name running at the same time:


1/ use the process ID. I think you can get it from System Events, or use the shell:
do shell script "ps -auxww | grep [the path to the app here]" will provide you with the pid of the app, then you do: tell app "Microsoft Excel" of machine "eppc://127.0.0.1/?pid=[the pid here]"


2/ use the path: tell app "Macintosh HD:Applications:Excel 2004:Microsoft Excel"

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
References: 
 >Re: Using Script Editor (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Value List
  • Next by Date: Re: Value List
  • Previous by thread: Re: Using Script Editor
  • Next by thread: Re: Using Script Editor
  • Index(es):
    • Date
    • Thread