Mac::OSA::Simple and Applescript properties

[email protected] (Bart Lateur) Thu, 18 Jul 2002 23:48:49 +0200
Newsgroups perl.macperl.toolbox
Organization MediaMind
Message-ID <[email protected]>
[I don't really know if I should send this to Macperl-modules or to
Macperl-toolbox. Since Mac::OSa::Simple is a Toolbox module... so there!
:-)]

I'd think this isn't quite the appropriate behaviour... Is something
wrong related to some contextid (a phrase I picked up from the Mac::OSA
docs )?

	#! perl -wl
	use Mac::OSA::Simple;
	my $script = compile_applescript(<<'SCRIPT') or die $^E;
	property foo: 20
	set foo to foo + 1
	SCRIPT
	print $script->execute;
	print $script->execute;
	print $script->execute;

This prints:

	21
	21
	21

I would have expected

	21
	22
	23

i.e. the context for the property should be retained between
invocations.

No?

-- 
	Bart.