Re: Stuck trying to use creatorid to control IE with OS 8.1
Re: Stuck trying to use creatorid to control IE with OS 8.1
- Subject: Re: Stuck trying to use creatorid to control IE with OS 8.1
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 14 Dec 2002 20:23:54 -0800
On 12/14/02 7:43 PM, "email@hidden" <email@hidden> wrote:
>
Alright! I'm 99% there, thanks to you guys educating me on creator-types,
>
GetSource commands, and raw event calls. The below script WORKS on Mac OS
>
8.5, 8.6, 9.0, 9.1, and 9.2... Except Mac OS 8.1. That's what I'm
>
struggling with now:
>
>
>
set creaType to "MSIE"
>
tell application "Finder" to open application file id creaType
>
tell application "Finder" to set appOfMine to (the name of the first process
>
whose creator type is "MSIE")
>
tell application appOfMine
>
set theSource to +event MSIESORC;
>
display dialog "source = " & theSource
>
end tell
>
>
>
After trying a bunch of Applescripts, it appears that Mac OS 8.1 doesn't have
>
an "open location" command either (i.e. tell application "Finder" to open
>
location "http://www.apple.com") I've got Internet Explorer 5.1 installed
>
on Mac OS 8.1 and it runs, so the browser is definetely there.
>
>
I'm also finding that Mac OS 8.1 will not run the above script because it
>
doesn't appear to be able to find Internet Explorer by creator type "MSIE".
>
It almost seems like Mac OS 8.1 just never acknowledges IE's existance. I'm
>
not sure what to do about that.
Someone with an older system (I'm in 10.2.2 and have to think very hard to
remember 8.1) can give you clearer answers, but here are some pointers:
Standard Additions didn't exist until OS 8.5. Until then, you got separate
scripting additions both from Apple and from 3rd-party sources. The raw code
for the (present) 'open location' is <<event GURLGURL>> That's been used
for a _very_ long time by all internet apps. Try it (with real chevrons).
You may need to get the separate addition: check some old packages at
www.osaxen.com.
Until OS 8.1, the Scripting Additions folder was in the Extensions folder,
not the System folder. One of those OS's - I think maybe 8.1 - allowed
either. If you need to install <<event GURLGURL>>, try both locations.
v5.1 of Internet Explorer may not work in OS 8.1. It must have come with
v4.0 at the latest, maybe even v3.x. Get an older version from somewhere.
Even though Netscape was the default browser until 8.5 (I think, or was it
8.0?) you'll still probably find a copy of it on the 8.0 or 8.1 CD (I think
they had CDs by then - v7.x were all floppies). I'm sure the creator code
must have been "MSIE" back then too - they don't change that. the app itself
contained its version number as part of the name.
>
>
Any assistance is greatly appreciated. All I need is to get OS 8.1 to work
>
and then I'm done!
(Or supply an upgrade to 8.6!)
--
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.