[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] macperl::DoAppleScript Doesn't



On Thu, 10 Feb 2000 17:41:38 +0800, robinmcf@altern.org wrote:

>Bart Lateur wrote:
>>If CodeWarrior isn't running, or it is running but the name isn't exact,
>>then AS won't find it. So compilation fails.

>this is inaccurate - apple script will prompt with a selection window if i=
=3D
t
>can't find the app

No way Jos=3DE9... this is the error trapping done by Script Editor. In
fact, you can even see this behaviour in Script Editor too.

Load this, or any other script that addresses an application, which was
saved as text, into a freshly started  Script Editor. Try saving it as
compiled script or as an applet. It will fail. Script Editor will say
something like "This script could not be compiled; it can only be saved
as text.".

Try to compile it, and NOW Script Editor will ask to locate the
application, and it will compile without any other complaints. So now
you will be able to save it as compiled script.

Repeat the whole process with the application running. No problem this
time.

Why would you expect something with regards to Applescript in MacPerl,
if even pure Applescript related products don't always supply this
functionality?

In your MacPerl script, launch the application, and maybe fill in the
exact name into the text of the Applescript, and there should never be
any problem.

--=3D20
=3D09Bart.

# =3D3D=3D3D=3D3D=3D3D=3D3D Want to unsubscribe from this list?
# =3D3D=3D3D=3D3D=3D3D=3D3D Send mail with body "unsubscribe" to macperl-re=
quest@macp=3D
erl.org