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: Skeeve <email@hidden>
- Date: Thu, 17 Apr 2008 08:58:42 +0200
Axel Luttgens wrote:
This is very likely because your script tries to write back values of
global entities, such as global variables or properties.
That's what I want to achieve.
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.
So in a run handler they are not local?
Unless I'm wrong, your script does not change properties values, so
the above should be sufficient.
It does! sframe, eframe and last_folder are properties I change.
-- Skeeve
_______________________________________________
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