Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plz Help !



Unfortunately this is a mailing list for AppleScript, a scripting system native to the Mac OS, not a list for using JavaScript on the Mac. So you are not likely to get any answer to this problem through this list.

For the kind of scripting you are asking about you are probably best off using this list:
<http://www.lists.apple.com/mailman/listinfo/web-development>

There is also this web page which seems to be related to what you are asking:
<http://www.oreillynet.com/lpt/a/javascript/2001/05/11/js_for_mac.html>

It suggests that you should be calling:
Core.message("Hello World!");
instead of
MacOS.finder().display_dialog("Hello World");

To bring up a dialog box that says "Hello World".

- Ken

On Nov 26, 2003, at 2:52 AM, Bala Kanchana wrote:

Sirs

this HTML file when opened thru Netscape throws error as
"MacOS" not
defined....Can anybody plz help me.

<html lang="en">
<head>
<script>
function
Sample_Func()
{
MacOS.finder().display_dialog("Hello World");
}
</script>
<title>Welcome</title>
</head>
<body>
<p>This is a <a href=#
onclick="Sample_Func()">link</a>.</p>
</body>
</html>
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.