Re: 6.5.2 Doesn't Remember Script Editor Location

2014-02-02 Thread Ray
That's a good suggestion Jackie and it's the same way Kay, who also responded to this thread, works. I've actually got a few other work arounds which are kind of clunky. Basically a send or an idle handler picks up the window and moves it for me but I may well try to get use to the idea of si

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-02-01 Thread J. Landman Gay
On 2/1/14, 1:21 PM, Ray wrote: All of this seems like a lot of work to go through just to get Livecode's script editor, the one area where more work is done than anywhere else, to behave as it should out of the box. It may seem like a minor thing but if you open and close this window 10 to 15 ti

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-02-01 Thread Ray
Mark, I've experimented some today and had 'limited' success. Here's the best I came up with: on revCloseStack curStack try set the CurrentRect of stack "ScriptEditorRect" to the rect of stack "revNewScriptEditor 1" end try end revCloseStack on revEditScript send "setScriptE

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
Ahh - you're right. I forgot to 'send' it. I'll experiment with this some more. I'm a little unfamiliar with plugins so I'll read up on that, too. Mark, thanks for your help on this. I'll continue to work with it over the weekend and let you know how it goes. Ray On 1/31/2014 6:19 PM, M

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Mark Schonewille
Hi Ray, You're doing it wrong. Have a look at the send command in my script. It is quite obvious. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Conv

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
So here's what I'm trying: Make a stack called "Test Front Script" with the following script in its one and only card: on revEditScript answer the openStacks end revEditScript Put the "Test Front Script" stack in the Plugins folder Launch LC and make a New Ma

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
Hey Jackie - no such file named "livecode.rev" on my Windows 8.1 system. I'll keep looking. On 1/31/2014 6:00 PM, J. Landman Gay wrote: On 1/31/14, 1:23 PM, Ray wrote: Jackie a thought occurred to me as I read your post. The very first time I open the script editor window it is already sligh

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread J. Landman Gay
On 1/31/14, 1:23 PM, Ray wrote: Jackie a thought occurred to me as I read your post. The very first time I open the script editor window it is already slightly off screen (the bottom part of it) so that could be the problem since you're able to repeat the issue if you close yours with it partial

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Mark Schonewille
Hi, The editScript message is sometimes triggered and sometimes not. Replace editScript with revEditScript and select revEditScript as (one of) the message(s) that is sent to your plug-in. This should work. Note that revEditScript only works if your front script is part of a plug-in. -- Best

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Mark Schonewille
Hi Ray, Hence the "send ... to me in 0 milliseconds" Btw I'm still testing, because it doesn't seem to work sometimes. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 5027

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
Mark, That's a very interesting message you're working with here; the 'editScript' message. I wasn't aware of that one. It seems like that would be the logical place to trap for something like this but in a simple script such as this one inserted into the front... on editScript put the

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Mark Schonewille
Hi Ray, When the script editor opens, the message seem to be locked. I tried to trigger the preOpenStack message when the script editor opens in MetaCard and that works perfectly. Apparently, the creator of the LiveCode script editor doesn't want us to intercept messages while editing a scrip

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
Jackie a thought occurred to me as I read your post. The very first time I open the script editor window it is already slightly off screen (the bottom part of it) so that could be the problem since you're able to repeat the issue if you close yours with it partially off screen. Is there a pre

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread J. Landman Gay
On 1/31/14, 11:13 AM, Peter Haworth wrote: I still see the same thing I reported earlier. I opened a script editor window, resized it, moved it to a different location, closed and re-opened it. The resizing and the left edge of the window were preserved but the top of the window went back to th

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
I've studied the preferences and I can't find a thing there which addresses this. I'd love to experiment with other work arounds such as a front script, a back script or a plug in, but the script editor window ignores all of these when it opens. My old solution of editing the Revolution UI ba

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Peter Haworth
In view of the posts from Kay and Jacque that they don't see this on their Macs, I just tried this again on my Mac (OSX 10.7.5) with LC 6.5.2. I still see the same thing I reported earlier. I opened a script editor window, resized it, moved it to a different location, closed and re-opened it. The

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-31 Thread Ray
Nope. Nothing to do with the scroll location. I've posted this as a bug. I included in my comments that some users don't see this at all. Must be a platform or system dependent thing. Thanks, Ray On 1/31/2014 12:52 AM, J. Landman Gay wrote: On January 30, 2014 10:53:46 PM CST, Kay C Lan

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread J. Landman Gay
On January 30, 2014 10:53:46 PM CST, Kay C Lan wrote: >Not on my Mac, open script editor, move, resize, close script editor >(without doing anything else), then reopen script editor and it's >EXACTLY >the same size and location. On my Mac too. When I first read the message I thought he was ta

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread J. Landman Gay
On January 30, 2014 10:53:46 PM CST, Kay C Lan wrote: >Not on my Mac, open script editor, move, resize, close script editor >(without doing anything else), then reopen script editor and it's >EXACTLY >the same size and location. On my Mac too. When I first read the message I thought he was ta

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Kay C Lan
On Fri, Jan 31, 2014 at 12:39 AM, J. Landman Gay wrote: > I don't think anything gets saved unless there has been a change to the > script. Did you try it after entering a space or something before closing > the window? > > And Peter H, Not on my Mac, open script editor, move, resize, close scri

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
Pete, Thanks for the feedback. I think we've got something worthy of writing up as a bug report. I'll hold off until I hear back from Mark who has also been following this thread. Thanks, Ray On 1/30/2014 1:56 PM, Peter Haworth wrote: I checked it again on Windows 8 and same as on OSX, t

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Peter Haworth
I checked it again on Windows 8 and same as on OSX, the resizing sticks and the left of the script editor sticks but the top doesn't. Since I only have a single monitor on both computers, it's not a huge issue for me but I can see it would be a problem in a multiple monitor setup. ALso noticed an

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
How is it on your Windows 8 box? On 1/30/2014 12:57 PM, Peter Haworth wrote: I see different behavior on my Mac. Resizing still sticks and it remembers the left of the script editor window but not the top. This is with LC 6.5.1 on OSX 10.7.5 My Windows box is running Windows 8. Pete lcSQL

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Peter Haworth
I see different behavior on my Mac. Resizing still sticks and it remembers the left of the script editor window but not the top. This is with LC 6.5.1 on OSX 10.7.5 My Windows box is running Windows 8. Pete lcSQL Software Home of lcStackBrowser

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
Ahh! Finally I've got somebody else who is experiencing this. On 1/30/2014 12:06 PM, Peter Haworth wrote: On Thu, Jan 30, 2014 at 7:05 AM, Ray wrote: I know! This is the most perplexing thing. I can't find anybody who can repeat this problem. You found one - I can reproduce this on Windo

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
Let me know how it goes Mark. I'd like to get a little more feedback before writing a bug report. On 1/30/2014 12:18 PM, Mark Schonewille wrote: Ray, I'll try it myself, later tonight. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://eco

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
Hey Jackie - yes, I have tried saving something. Here's what I do (pretty simple) Launch Livecode File, New Mainstack Shift-Control-S to open the stack script (the script editor window opens slightly off screen) Move the script editor window to my second monitor and totally on scr

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Mark Schonewille
Ray, I'll try it myself, later tonight. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colou

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Peter Haworth
On Thu, Jan 30, 2014 at 7:05 AM, Ray wrote: > I know! This is the most perplexing thing. I can't find anybody who can > repeat this problem. You found one - I can reproduce this on Windows using your recipe, well almost. In my case, the resizing sticks but the positioning doesn't so the top

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread J. Landman Gay
I don't think anything gets saved unless there has been a change to the script. Did you try it after entering a space or something before closing the window? On January 30, 2014 9:05:19 AM CST, Ray wrote:. > >On my Windows 8, and Windows 7 systems I can invariably repeat the >following proble

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
I'm not having any luck with inserting the following script into front: on preOpenStack put the ticks end preOpenStack With this inserted I get a message box opened with the ticks when I open another stack from the desktop, but no ticks when I shift-control-S to open the stack script (the s

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Mark Schonewille
Ray, What Björnke says. However, I would use a frontscript to catch the preOpenStack messages, check that that target is card 1 of a script editor and then set the loc and rect of the script editor if necessary. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engine

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
I know! This is the most perplexing thing. I can't find anybody who can repeat this problem. On my Windows 8, and Windows 7 systems I can invariably repeat the following problem: Download a fresh copy of Livecode Launch it (with no other stacks) Create a new main stack Open the s

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Kay C Lan
On Thu, Jan 30, 2014 at 8:36 PM, Ray wrote: > > my concern isn't that the script editor window re-open where I left it > after I quit, but rather that it re-open where I left it each time I > re-open it during a single work session. > Oh, I've never worked that way, once I start LC I open the sc

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Björnke von Gierke
On 30.01.2014, at 14:08, Ray wrote: > Could you please point me to a lesson/steps or something which would help me > write a backscript in a plugin and have it open automatically? Well the first stop would obviously be to read the backscript entry of the dictionary. I have a similar setup a

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
Mark, Wonderful suggestion - thanks. Could you please point me to a lesson/steps or something which would help me write a backscript in a plugin and have it open automatically? I've never done this before and would love to get a little experience in it. Thanks, Ray On 1/30/2014 7:52 AM,

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Mark Schonewille
Hi Ray, I can't really confirm this for the current version of LC, but in the past, the script editor used to open at the bottom of the screen, with the title bar barely visible. Every time when I opened the script editor, I had to move it upwards. Probably, deleting the preferences stack sol

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-30 Thread Ray
HTH, Thanks for these comments and suggestions. I mainly work on Windows 8.1 so I'm not able to comment regarding iTunes. I'm also a little unclear as to how quitting effects this issue since my concern isn't that the script editor window re-open where I left it after I quit, but rather tha

Re: 6.5.2 Doesn't Remember Script Editor Location

2014-01-29 Thread Kay C Lan
Definitely NOT confirmed. My problem (not LC's) is the exact opposite, I use multiple monitors and the script editor is always on another monitor, if I do not remember to shutdown LC correctly - by first moving ALL the LC windows and palettes back to the main monitor, if I start up LC without the