Re: why won't this compile?
Re: why won't this compile?
- Subject: Re: why won't this compile?
- From: "Donald S. Hall" <email@hidden>
- Date: Sat, 29 Dec 2001 00:00:53 -0700
Thanks very much to all who replied. I should have realized what was going
on.
The original problem I had was that when I tried to run a script with 'tell
application "Internet Explorer"'in OS X, classic started up and the script
used the the classic version of IE that is in my OS 9 partition to carry out
the commands. (If I do a 'choose application' in OS X, the classic version
of IE appears before the X version, and I wonder if that isn't related.) I
thought of using 'choose application' to get a reference to the proper
version of IE, and then ran into the compile problem.
The script is intended for OS 9.2 and OS X only, so I will probably use the
'using terms from' solution. Both versions of IE seem to have the same
dictionary commands, at least for the commands I want to use.
The following compiles and runs fine in OS 9.2:
property browser : ""
if browser = "" then set browser to choose application
set theURL to "
http://www.maccentral.com"
set theWindow to -1 -- top window
using terms from application "Internet Explorer"
tell browser
OpenURL theURL toWindow theWindow Flags 7
end tell
end using terms from
I am not in OS X at the moment, but will try it out there shortly.
Is there any way to ensure that the correct version of an app is selected
without having to resort to 'choose application'?
Thanks again,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden