Re: Using Script Editor
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