Re: Calling OSX AppleScript from Classic Apps
Re: Calling OSX AppleScript from Classic Apps
- Subject: Re: Calling OSX AppleScript from Classic Apps
- From: Christopher Nebel <email@hidden>
- Date: Thu, 3 Jul 2003 23:29:44 -0700
On Thursday, June 26, 2003, at 4:59 AM, Nigel Smith wrote:
How can I make a Classic app use the OSX AppleScript (v1.9.1 in my
case)
instead of Classic AppleScript (v1.8.3)?
You can't. That's what running in Classic means -- you get the Classic
versions of everything. If you want to use Mac OS X AppleScript, you
need to use a Mac OS X applet. There are no restrictions (or at least
there shouldn't be) on what applications you can talk to in either
case.
One sort of weird bit is that which scripting additions you get depends
on the application you tell to do them. Tell a Classic application,
and you'll get the Classic additions; tell a native one, you'll get the
native ones. You probably already knew that, since "do shell script"
doesn't exist in Classic AppleScript.
If I can't force the AppleScript version used -- how can I convert the
Unicode data from a "do shell script" step into a string when using
AS1.8.3?
I can't think of any straightforward way to do this from Classic. In
fact, I can't think of *any* way to do it without writing a helper
applet that runs natively. One wonders why you're trying to use a
Classic applet to do this in the first place.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.