Re: Scripting Cut/Copy/Paste in custom menus

2014-09-15 Thread Kay C Lan
On Mon, Sep 15, 2014 at 12:49 PM, J. Landman Gay jac...@hyperactivesw.com wrote: Forgot to mention: the IDE uses the delete command in it's Clear menu item script, but only applies it for objects. It scripts the deletion of text in fields, and that too fails to provide a closefield message.

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Paul Hibbert
Bob, Cut, copy, paste clear are available as commands in LC, so maybe simplifying your Edit menu a little may help, for example… --The following menuPick handler was generated by the Menu Builder ( simplified a little). on menuPick pWhich switch pWhich case Preferences

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Dr. Hawkins
On Sat, Sep 13, 2014 at 8:26 PM, J. Landman Gay jac...@hyperactivesw.com wrote: on closeField doStuff end closeField And in some other handler somewhere: put xyz into fld 1 doStuff or even -- Dr. Richard E. Hawkins, Esq. (702) 508-8462

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Dr. Hawkins
Let'st try that again . . . On Sun, Sep 14, 2014 at 7:45 AM, Dr. Hawkins doch...@gmail.com wrote: On Sat, Sep 13, 2014 at 8:26 PM, J. Landman Gay jac...@hyperactivesw.com wrote: on closeField doStuff end closeField And in some other handler somewhere: put xyz into fld 1 doStuff

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
On Sun, Sep 14, 2014 at 2:22 PM, Paul Hibbert paulhibb...@mac.com wrote: Tested in LC 5.5.5 + 6.6.2 7.0(rc1) on Mac OS X 10.9.3 Cutting, or pasting within a field then tabbing out does trigger a closeField message, but Copy doesn't, possibly because the field didn't change even though

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
On Sun, Sep 14, 2014 at 2:22 PM, Paul Hibbert paulhibb...@mac.com wrote: Cut, copy, paste clear are available as commands in LC, so maybe simplifying your Edit menu a little may help, for example… OK, now I see what you are saying, if you build your Menu Bar script using the basic Cut,

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
On 9/14/2014, 9:41 PM, Kay C Lan wrote: Now use the Menu Builder to create an OS X Menu for you, tick the box to Set as stack Menu Bar, have it auto build the script for you, and then open if for Edit and fill it as you would for Copy, Paste, and Clear. It should look something like this: --The

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
Except Paul is right, on OS X the clear command in a custom built menu does not invoke a closeField message which it does if using the IDE's clear command. This does seem to be a bug. On Mon, Sep 15, 2014 at 12:15 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 9/14/2014, 9:41 PM, Kay C

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
On 9/14/2014, 11:19 PM, Kay C Lan wrote: Except Paul is right, on OS X the clear command in a custom built menu does not invoke a closeField message which it does if using the IDE's clear command. This does seem to be a bug. I never use clear so I had to look it up. Clear is a synonym of

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
On 9/14/2014, 11:19 PM, Kay C Lan wrote: Except Paul is right, on OS X the clear command in a custom built menu does not invoke a closeField message which it does if using the IDE's clear command. Forgot to mention: the IDE uses the delete command in it's Clear menu item script, but only

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Paul Hibbert
And you are correct Kay, in checking the target against the clipboard, after a busy day photographing dolphins I came back and tried another test. My original suggestion was too simple in that if the clipboardData contained an image it would paste the image over the top of everything on the

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Bob Sneidar
I read from the Dictionary under closeField: The closeField message is not sent when a handler changes the field's contents using the put command.” May I submit that it ought to? An edited field is an edited field, and when it loses focus, if the contents are not what they were when it was

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Kay C Lan
Your suggestion, if it didn't break many stacks, would certainly slow them down. I mainly work with a Stack, a single card with anywhere between 10s to over a 100 fields, and a database. Going Next or Previous record populates those fields by using 'put' statements. Currently, even with 100+

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread J. Landman Gay
On 9/13/2014, 7:55 PM, Bob Sneidar wrote: As many know, creating a custom menu set on OS X (not sure about Windows) will typically add the File and Edit menus to your customer menu set. This has the net effect of*disabling* cut/copy/paste/clear. Not really. Did you use Menu Builder to set up