Re: Specifying OS X/9 versions of an app [LONG] [WAS: Re: why won't this compile?]
Re: Specifying OS X/9 versions of an app [LONG] [WAS: Re: why won't this compile?]
- Subject: Re: Specifying OS X/9 versions of an app [LONG] [WAS: Re: why won't this compile?]
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 29 Dec 2001 11:09:05 -0800
On 12/29/01 7:38 AM, "Deivy Petrescu" <email@hidden> wrote:
>
Paul, I believe the correct path would include "...Entourage.app"
>
No, that's just for Cocoa apps, which are packages. Not Carbon apps like
Entourage. If I add ".app" on to the end I get an error "File was not found"
when I try to compile.
>
>
> That can be very
>
> annoying and puzzling. Something in the system just interprets the 'tell
>
> application' construct as 'tell application "Microsoft Entourage" and
>
> opens
>
> the one it likes, no matter if you put in the path to the other one!
>
>
What if you include ".app" in all your apps, will *it* still do that?
>
May be the .app could be a life saver.
Afraid not.
I just tried this again. Even stranger. We start out from the fact that OMM,
my system currently understands the OS X version of Entourage as the one it
knows and likes. (This is not unusual, since it's the more recent version.
But it's a disaster if I'm then booted in OS 9; nothing opens. Greg has it
the other way, where the Classic version keeps opening in OSX.)
I quit Entourage X so neither was open. I put this into a Script Debugger
window:
tell application "Apps HD:Applications (Mac OS 9):Microsoft Office
2001:Microsoft Entourage"
launch
end tell
When I compiled it, I got an error "can't get the application's dictionary"
. Then it opened anyway, which very much surprised me. (I still hadn't run
the script.) I quit Entourage 2001. Then I compiled and ran this:
tell application "Apps HD:Applications (OS X):Microsoft Office X:Microsoft
Entourage"
launch
end tell
Entourage X opened , as it should . I quit it. Then I ran the OS 9 launch
script again. Absolutely nothing happened. This is precisely what happens
(or doesn't) from an applet. The 'opening when compiling' was some sort of
SD thing.
And I'm afraid "Apps HD:Applications (OS X):Microsoft Office X:Microsoft
Entourage.app" just errors. As does "Apps HD:Applications (Mac OS
9):Microsoft Office 2001:Microsoft Entourage.app", for that matter, which is
the one that isn't opening.
--
Paul Berkowitz