Scripting in OSX: Classic osaxen for Classic apps?
Scripting in OSX: Classic osaxen for Classic apps?
- Subject: Scripting in OSX: Classic osaxen for Classic apps?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 09 Jun 2001 01:43:34 -0700
According to a page in the Help for OS X, you're supposed to be able to
compile scripts in the OS X Script Editor which refer to classic scripting
additions (for Classic or OS 8/9 use, of course) by enclosing the osax terms
in a 'using terms from' construction, then wrapping that in a tell block to
a classic app.
Except that 'using terms from' is meant to take an application reference,
and osaxen are not applications (it won't compile if you try with
'application "osaxName" '). Someone told me it was supposed to work using an
alias filepath to the file of the osax, as in
tell application "Classic App"
using terms from alias "OS 9 HD:System Folder:Scripting
Additions:Jon's Commands"
-- code here
end
end
but it won't compile , not even hardcoded with my real file path. (I have a
routine worked out that would get the script to compile on any OS 8/9 or
Classic OS, but I haven't been able to get the initial script to compile. It
errors hat the file can't be found. This same error also occurs if I write:
set f to "OS 9 HD:System Folder:Scripting Additions:Jon's Commands"
Have I made a stupid mistake, or is this a bug?
--
Paul Berkowitz