Search the web
Sign In
New User? Sign Up
jsosa · JavaScript OSA-Talk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: Javascript print   Message List  
Reply | Forward Message #373 of 529 |
Your samples should work fine on the Mac, too, if embedded in a browser
page, but not as stand-alone OSA scripts.

I'm new to JSOSA, but I think I can say why that code doesn't work: Any
JavaScript verbal (written or printed) interaction with the user is not
really part of the JavaScript core, so you have to rethink input and output
in terms of the Apple OSA environment (as opposed to the browser
environment), using the input, output, and printing commands available from
the Finder and AS Additions, all of which have their JSOSA equivalents.

I'm told that a browser-style library, providing things like window.print(),
alert() and prompt() to JSOSA, might be available through this list, but I
can't find any mention of such a thing in the archives. If you're really
ambitious, you could write your own set of JS functions that accept Netscape
or Explorer commands and invoke the appropriate OSA routines, but it might
be easier to just use the MacOS object and its methods instead.

After all, JSOSA is designed to allow you to script the Finder, not to
develop JS functions for the Web (although I think it has great potential
there). Remember, tho, I did say I'm a newbie (so take what I say with big
chunk of sodium chloride)...

On 10/22/02 10:27 AM, "jsosa@yahoogroups.com" <jsosa@yahoogroups.com> wrote:

> Message: 1
> Date: Mon, 21 Oct 2002 19:24:01 -0000
> From: "Fluffy and Taquito" <numexicouple@...>
> Subject: Javascript Print
>
> Hi,
> To anyone out there who might have knowledge about making a
> Javascript print function work. I've found two pieces of code that
> works great in windows:

--
Scott Heath, Instructional Designer
Transfusion Medicine Computer Assisted Learning Unit
Bonfils Blood Center, Research Department




Thu Oct 24, 2002 5:13 pm

scottheath_y
Offline Offline
Send Email Send Email

Forward
Message #373 of 529 |
Expand Messages Author Sort by Date

Your samples should work fine on the Mac, too, if embedded in a browser page, but not as stand-alone OSA scripts. I'm new to JSOSA, but I think I can say why...
Scott Heath
scottheath_y
Offline Send Email
Oct 24, 2002
5:13 pm

I just want to thank you for taking the time to analize and respond to my question. I'll have to think about all that you said and determine a best course of...
Fluffy and Taquito
numexicouple
Offline Send Email
Oct 25, 2002
12:12 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help