LNS Home
JavaScript OSA
JavaScript OSA Home
Download & Installation
QuickStart
Project Status
Documentation
 
Object Reference
 
Core
MacOS
MacOS.AEDesc
MacOS.AEApp
MacOS.AEClass
MacOS.AEColl
MacOS.FileSpec
MacOS.OSA
MacOS.MacOSError
Sending Raw AppleEvents
Responding to AppleEvents
AppleEvent to JavaScript Value Conversion
How-Tos
 
Open Handler
Folder Actions Handlers
Write Some Text
Calling JavaScript from REALbasic
Using JavaScript Libraries
FAQ
Mailing List
JavaScript Language Documentation & Links
Products
x Script Debugger 4.5
Site Contents
bullet Mark’s Blog
Product Registration
Bug Reporting
x Freeware
Contacting Us

Core object

We have cross-platform plans for this JavaScript implementation. The Core object is the root of the built-in cross-platform object model offered by the JavaScript OSA implementation.

Method/Property Description
Core.version

JavaScript for OSA's version string

Core.copyright

JavaScript for OSA's copyright notice

Core.URL

JavaScript for OSA's support URL

Core.me

a string containing a path to the application running the script

Core.home

a string containing a path to the user's home folder (the user's Desktop folder on the Mac)

Core.temp

a string containing a path to a folder where temporary files are to be stored

Core.platform

The platform OS name: "MacOS", "MacOSX", "Windows"

Core.platformVersion

The platform OS's version number

Core.message(message)

Display an informational message to the user

Core.warning(message)

Display a warning message to the user

Core.error(message)

Display an error message to the user

Core.load(path)

Load a JavaScript library from a text file. Information describing how to prepare a JavaScript library is available on the Using JavaScript Libraries page.

 

 

 

 

 

 

 

 


Copyright © 1998-2009 Late Night Software Ltd. - All Rights Reserved.