Re: Where is app appears in OS 8's but not OS 9's.
Re: Where is app appears in OS 8's but not OS 9's.
- Subject: Re: Where is app appears in OS 8's but not OS 9's.
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 06 Dec 2002 00:05:11 -0800
On 12/6/02 11:39 AM, "Andy Wylie" <email@hidden> wrote:
>
on Thu, 05 Dec 2002 21:10:09 -0500 email@hidden wrote:
>
>
> If I have an applescript that says:
>
>
>
> try
>
> tell application "Internet Explorer"
>
> -- do some stuff
>
> end tell
>
> end try
>
>
>
> On Mac OS 9.1 and 9.2, it works, but in Mac OS 8.1, 8.5, 8.6, I get a "Where
>
> is
>
Internet Explorer" error. What's odd is that IE is actually running, and it
>
still doesn't know where to find it. Is there a way I can fix this in one
>
script without breaking things for OS 9?
You (rgould, that is) must have an older version of IE in OS 8.1, 8.5, 8.6.
Before the current v5.x that came with OS 9 (or maybe later), the name of
the app included its version number: "Internet Explorer 4.5", "Internet
Explorer 4.0". Now - specifically so that scripts won't break with future
versions - it's just "Internet Explorer". You need to tell the exact name
of the application.
As Andy says, check Smile's Help for "portability" for the way to make it
work for all versions of IE. If you're compiling in OS 9, you can use the
somewhat simpler method of 'using terms from application "Internet Explorer"
and it will still run in 8.x, but to compile in 8.x you need to do it the
way outlined in Smile, with raw codes. It will work in all versions.
>
>
8.6 doesn't have a problem locating processes here, it complains 'expected
>
on but found end' though so 'on error'.
>
If you want a robust solution search Smile's help for 'portability'
--
Paul Berkowitz
_______________________________________________
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.