why won't this compile?
why won't this compile?
- Subject: why won't this compile?
- From: "Donald S. Hall" <email@hidden>
- Date: Thu, 27 Dec 2001 22:32:22 -0700
This script compiles and runs fine (both OS 9.2.1, AS 1.6 & OS 10.1, AS 1.7)
--begin script 1 -------------------------------------
set theURL to "
http://www.maccentral.com"
set theWindow to -1 -- top window
tell application "Internet Explorer"
OpenURL theURL toWindow theWindow Flags 7
end tell
--end script 1 ---------------------------------------
However, this script won't compile on either system:
--begin script 2 -------------------------------------
set theURL to "
http://www.maccentral.com"
set theWindow to -1 -- top window
set browser to "Internet Explorer"
tell application browser
OpenURL theURL toWindow theWindow Flags 7
end tell
--end script 2 ---------------------------------------
Nor will this script:
--begin script 3 -------------------------------------
set theURL to "
http://www.maccentral.com"
set theWindow to -1 -- top window
set browser to application "Internet Explorer"
tell browser
OpenURL theURL toWindow theWindow Flags 7
end tell
--end script 3 ---------------------------------------
In the latter two cases, "Check Syntax" produces an error message:
'Expected end of line, but found identifier.' The identifier highlighted is
theURL in the OpenURL statement.
What am I doing wrong, if anything?
Thanks,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden