Re: Image events: How do I cut out a region
Re: Image events: How do I cut out a region
- Subject: Re: Image events: How do I cut out a region
- From: Axel Luttgens <email@hidden>
- Date: Wed, 16 Apr 2008 08:04:27 +0200
Le 15 avr. 08 à 21:08, Skeeve a écrit :
[...]
One question in regards to that: I saved it as a program bundle and
always recveive an error when it finishes because it cant write back
the changed properties. If anyone has an idea how to solve that,
please tell me...
Hello Skeeve,
This is very likely because your script tries to write back values of
global entities, such as global variables or properties.
The localitity/globality of variables in the run handler (either
implicit or explicit) is somewhat surprising...
Try to replace your "on run" handler with a custom "on DoIt()"
handler, and call "DoIt()" from within your run handler; this should
make variables such as "clicked" local ones.
Unless I'm wrong, your script does not change properties values, so
the above should be sufficient.
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden