Re: controlling remote application question
Re: controlling remote application question
- Subject: Re: controlling remote application question
- From: Gnarlodious <email@hidden>
- Date: Tue, 11 May 2004 07:09:48 -0600
Roy:
This doesn't answer your question, but I asked it on
microsoft.public.mac.office.entourage and got this answer from Paul
Berkowitz.
Feel free to file a bug report.
-- Gnarlie
On 5/2/04 8:59 AM, in article
BCBA7708.43F50%email@hidden, "Gnarlodious"
<email@hidden> wrote:
>
Works:
>
>
tell application "System Events" of machine "eppc://Gnarlodious-Cube.local"
>
to exists process "Microsoft Entourage"
>
>
Doesn't:
>
>
tell application "System Events" of machine "eppc://Gnarlodious-Cube.local"
>
to exists process "Entourage"
>
>
>
Compare that to this:
>
>
>
Works:
>
>
ignoring application responses
>
tell application "Entourage" of machine "eppc://Gnarlodious-Cube.local"
>
to quit
>
end ignoring
>
>
Doesn't:
>
>
ignoring application responses
>
tell application "Microsoft Entourage" of machine
>
"eppc://Gnarlodious-Cube.local" to quit
>
end ignoring
>
>
>
Any explanation for this anomalous behaviour?
You should probably ask this on the Apple-Script Users list, Gnarlie.
I get the same thing. As far as 'application "Application Name" ' goes, you
usually have to use the name of application file. However, there are various
kinds of name that the OS uses for applications and processes. For example,
if you try a 'choose application' you'll see "Microsoft Entourage" show up
as many times as you have versions and copies. But if you press cmd-opt-esc
for Force Quite, you'll see plain "Entourage" show up. I've forgotten what
that kind of name is called, but every app has this type too. With one-word
names it's the same, but with longer app names there really are two kinds.
It appears that Remote Apple Events (accessed by 'of machine "eppc://"'
command) uses the short name - which is inconsistent with normal AppleScript
behavior, but System Events process names are the same as always (which
makes sense).
I think it's most unlikely that this has anything to do with how Entourage
developers have implemented it (aside from the fact that there's a short
form at all), but rather how Apple engineers have implemented the 'of
machine "eppc://"' thing for remote scripting to use the short form. I don't
know why they've done it that way - it seems buglike to me. I'd ask on
AS-Users list and maybe file a bug with Apple.
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <
http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
Entity Steve Roy spoke thus:
>
On May 10, 2004, at 4:17 PM, Christopher Nebel wrote:
>
>
> 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.
>
>
Interesting. This doesn't explain though the problem met with
>
Entourage, which is not a bundle, yet the application file name is
>
"Microsoft Entourage" and the name to use for remote scripting is
>
"Entourage". What's up with that, any way for a script to figure this
>
out at runtime?
>
>
Steve
_______________________________________________
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.