At 3:11 am +0000 24/11/03, John Delacour wrote:

The script below demonstrates how to pass arguments to a script. Although the dictionary does not mention arguments in the Do Script entry, these are passed as items of a list, the first item of which is the script text.

I should have said that the first item can _also_ be an alias or a file specification or pathname -- I must have made an error when testing that but I've just done it again and it does work.
So all you need really is this


tell app "MacPerl" to Do Script {f, "a", "b", "c"}

where f is file "some:thing.pl" or alias "some:thing.pl" or "some:thing.pl"

Do Script is «event miscdosc»


CaptureAE will give you something like this:


Process("MacPerl").SendAE "misc,dosc,'----':[³dxp:users:jd:desktop:test.pl², ³a², ³b², ³c²], &subj:'null'(), &csig:magn(«00010000»)"

Everything after the "]" is probably redundant.

JD


Reply via email to