Import Snapshot Broken in 4.5.3?
Peter Brigham MD
pmbrig at gmail.com
Sun Jan 16 10:16:26 CST 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 M. Brigham
pmbrig at gmail.com
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
> current card, but fails when run from the message box, so it seems
> has broken in recent versions of the message box's script processing.
> 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
>>> 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"
>> 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
>> 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
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode