Import Snapshot Broken in 4.5.3?

Peter Brigham MD pmbrig at gmail.com
Sun Jan 16 11:16:26 EST 2011


Thanks. As usual, I discovered this for myself in the dictionary about  
4 minutes after I hit the "send" button. Another way that this list is  
useful for learning -- all I need to do is post a question and then I  
find that I already have the answer! Apparently I inadvertently  
installed an LC-uselist external in my brain. Did you create that  
utility too, Scott?

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig


On Jan 13, 2011, at 11:25 AM, Scott Rossi wrote:

> Hi Peter:
>
> "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.
>
> Regards,
>
> Scott Rossi
> Creative Director
> 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
>> http://home.comcast.net/~pmbrig
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list