Import Snapshot Broken in 4.5.3?
scott at tactilemedia.com
Thu Jan 13 13:25:30 CST 2011
"the selObj" is short for "the selectedObject". It returns the long id of
whatever object is selected. Like other LC functions, you must either use
the form "the xyz" or "xyz()". In this case, both "the selObj" and
"selObj()" are the correct forms.
I found that the script works as expected when run from a control on the
current card, but fails when run from the message box, so it seems something
has broken in recent versions of the message box's script processing.
Tactile Media, UX Design
Recently, Peter Brigham MD wrote:
> On Jan 12, 2011, at 9:07 PM, Scott Rossi wrote:
>> Houston, I think we have a problem.
>> This script works in LC (Rev) 4 OS X but generates an error in 4.5.3:
>> import snapshot from rect (rect of the selobj) of the selobj
>> Message execution error:
>> Error description: value: error executing expression
>> Hint: import snapshot from rect (rect of the selobj) of the selobj
> I must be missing something: the the syntax "rect of the selobj" seems
> to be what you would use for a LC property. If selobj is a variable
> then this would not be expected to work, and if it's a customprop then
> it should be "rect of the selobj of this stack" or some such. If on
> the other hand selobj contains a long id then shouldn't you use "rect
> of selobj" ? As it stands now, this is new syntax to me....
> -- Peter
> Peter M. Brigham
> pmbrig at gmail.com
More information about the use-livecode