Re: getProp puzzle

2016-09-12 Thread dfepstein
Thanks to Mike Bonner for his helpful suggestions. Stack A and Stack B are both mainStacks. Further tests seem to confirm this rule:   A setProp or getProp handler in the script of stack A cannot be invoked for a target in Stack B UNLESS we have "started using" stack A (even if Stack A is

Save Stack very slow in Windows 7

2015-11-05 Thread dfepstein
I have for years successfully run a set of stacks using LiveCode 5.5.3 in Windows 7.  Recently certain operations have become painfully slow (Windows says "not responding" for 2 minutes or so, but eventually does respond and the operation is completed). Setting some breakpoints to investigate,

Script-controlled export of animation from Livecode?

2015-07-29 Thread dfepstein
Is there a way of scripting the export of an animation constructed in Livecode to some standard video file format (avi, mp4, etc.)?Alternatively, is there a way of scripting the creation of a standalone Livecode file that contains the animation?   David Epstein ___

Field loses its identity as a target

2015-07-29 Thread dfepstein
I have encountered a bizarre problem that occurs in a somewhat complicated context.  I wonder if anyone has experienced anything similar. In short:  when I click a locked field on one occasion “the long id of the target” returns the expected result; but when I click on it subsequently “the long

Re: Insertion point problems

2015-06-25 Thread dfepstein
Thanks to Bernd for the simplest solution to my practical problem. If we "go to" Stack A "the selectedChunk" will mean "the selectedChunk in stack A". But, as he notes, preservation of the prior selection depends on certain conditions (more on this below). One anomaly is that "the selecte

Re: Insertion point problems

2015-06-23 Thread dfepstein
Thanks to Craig Newman and Bob Sneidar.  Unless I have misunderstood them, which is possible, I think I have not clearly enough explained my problem.    I want a menu button in a palette to paste the clipboard's contents to the topStack at the selectedChunk.  This works if the selectedChunk act

Resolution of PDF in player object

2015-05-27 Thread dfepstein
ything BUT a bitmap.  But this was all QuickTime stuff, so things may have changed more recently. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 5/26/15, 4:09 PM, "David Epstein" < dfepstein at comcast.net > wrote: > In the past, when I displaye

Can a script preempt substack name conflicts?

2015-05-15 Thread dfepstein
Thanks for this prudent advice.  The case I am contemplating would involve a user creating new substacks to hold content.  While I can make sure each substack created by my program gets a unique name, if a file created on one machine is moved to another machine there is some chance of a conflict

Re: What is driving the MB of a stack?

2015-04-30 Thread dfepstein
Thanks to Scott Rossi and Richard Gaskin for their suggestions, which led me to the problem (large block of data stored as a custom property of a substack).   While poking around, I noticed that many but not most controls and groups, when I get "the customPropertySets" of them, return the v

What is driving the MB of a stack?

2015-04-29 Thread dfepstein
A stack I have gradually improved over several years now occupies 4 MB on disk, whereas for a long time it was more like 500 KB. Is there some way to diagnose what elements are causing this?  I'd like to generate a list of all of the stack's substacks, cards, fields, images, scripts, etc., and

Re: Vector export?

2015-02-19 Thread dfepstein
For high resolution export of vectors:  open printing to pdf   David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/

Re: Speed testing: Fastest search method

2014-08-31 Thread dfepstein
compared 3 methods of stripping lines from a variable, and concluded: If memory is an issue, then Method 2 is best If memory is not an issue, then Method 3 is best 3 questions: 1. Is there a good way to determine ahead of time whether memory is an issue? When I start the handler I can find

Achieving highest resolution output

2014-06-20 Thread dfepstein
I hope someone can help me understand printing resolution. If I use LiveCode to generate a PDF that will be printed at 300 dpi, how do I achieve the best output? For vectors, I assume that it makes no difference at what scale I compose the picture. (Is that true?) But suppose I want to print

numberFormat question

2014-06-16 Thread dfepstein
I am trying to set the numberFormat so that calculation is precise enough for the situation.  Since I don't know ahead of time how many decimal places will be used, I wrote a function that I hoped would adjust things as necessary. But when this function is called with parameters m = 1.09131 an

Re: Finding matched parentheses

2013-07-29 Thread dfepstein
Testing for speed, I found that my July 29 function--the one that uses lineDelimiter and itemDelimiter--is thwarted when two parens appear as consecutive characters, and gives the wrong answer in that case. Sorry about that. I may not have correctly implemented Peter Haworth's Regex string,

Re: Finding matched parentheses

2013-07-29 Thread dfepstein
On second thought : function offsetPair a,b,str -- str cannot be more than one line    -- returns first instance of char a && "matching" instance of char b in str, or 0 if no a or empty if no match    put offset(a,str) into ca    if ca = 0 then return 0    put numToChar(7) into char 1 to

Re: How Many Pages are in a PDF?

2013-05-29 Thread dfepstein
1 + (the duration of player myPlayerName)/ 75 David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listi

Re: Page 2 of a PDF

2013-04-05 Thread dfepstein
I think this will work on a Mac: on pdfToPage n -- show page n of the pdf in player 1   put round(n) into n -- n as passed by scrollBarDrag doesn't seem to   -- always be an integer   put (n-1)*75 into t   set the playSelection of player 1 to true   set the startTime of player 1 to t  

Opening a stack crashes RevMedia, and message box won't work

2012-12-11 Thread dfepstein
I have encountered two strange new symptoms using RevMedia 2.9 on a Windows 7 machine.  I do not know if they are related. 1.  I often write stacks on my Macintosh with Metacard 2.0, then run them successfully in Windows with RevMedia 2.9.  But for a new stack that works fine on my Mac, op

Pasting to a field from Internet Explorer 8

2012-08-29 Thread dfepstein
I have for a long time pasted text copied from other programs to a field by using a script like "set the htmlText of [destination chunk] to clipboardData["html"] After a recent upgrade to Windows 7 and Internet Explorer 8 this does not work for text copied from Internet Explorer; pasting yiel

Counting days from a past date

2012-05-08 Thread dfepstein
I want to count the number of days between some past date and today. I tried this (using Rev 3.0):   on mouseUp   put "March 12, 2012" into a   convert a to seconds -- LC should understand this as midnight   get the date   convert it to seconds -- should also be midnight   put (i

Re: [Bug 10199] New: Office Excel Clipboard Translation

2012-04-30 Thread dfepstein
Perhaps relevant to this thread is this problem I have found while copying in Excel, pasting in LC (actually an older version of Rev): When you zoom Excel's display, the number formatting changes. E.g., "442593" becomes "4E+05" if space is too tight, or "" if space is really tight. This

Re: printing rotated text

2011-12-02 Thread dfepstein
Ben Rubenstein asked   Can I just confirm that there's no way to print high-quality rotated text from LC?   Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and reduce the image's width and length to 25% of the original . David Epste