Command "Launch"

2021-12-11 Thread Yves COPPE via use-livecode
Hello,


On mac :
I want to launch a document with application « TextEdit »
The path to the document is ok but I cannot find a script with the path to « 
TextEdit »
Can somebody help, me ?

Thanks.

Greetings.

Yves COPPE
yvesco...@mac.com

___
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/listinfo/use-livecode


Re: submenu

2017-11-19 Thread Yves COPPE via use-livecode
Hello,

Successful 
I’ve used the property inspector.

thanks !

Greetings.


> Le 19 nov. 2017 à 20:35, Paul Hibbert via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> I think this behaviour is to do with the bug 18316 (link in previous email).
> 
> If you locate the button in the project menu and look at the property 
> inspector > text, you will see the tab indents that create the submenu items.
> 
> e.g. 
> https://www.dropbox.com/s/59afsj55qgk65vm/Menu%20Screen%20Shot%203.jpg?dl=0 
> <https://www.dropbox.com/s/59afsj55qgk65vm/Menu%20Screen%20Shot%203.jpg?dl=0>
> 
> Paul
> 
>> On 19 Nov 2017, at 10:17, Yves COPPE via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hello,
>> 
>> When I move the menu (B) just after another menu (A) and want to make Menu 
>> (B) a submenu of menu (A), this icon you describe is disabled !
>> 
>> 
>> Greetings.
>> 
>>> Le 19 nov. 2017 à 18:51, Paul Hibbert via use-livecode 
>>> <use-livecode@lists.runrev.com> a écrit :
>>> 
>>> In the Menu Builder, underneath the [Delete Item] button, there are two 
>>> icons. The left one is to “Make the submenu item into a menu item” and the 
>>> right one will “Make the selected menu item into a submenu item".
>>> 
>>> On a side note, while checking this out and refreshing my memory of the 
>>> menu builder, I noticed that the submenu items disappear from the list if 
>>> you close and re-open the Menu Builder, however, the items don’t disappear 
>>> from the button’s text in the PI, so they are intact still there. This bug 
>>> means you only get one shot at setting up the submenu items in the Menu 
>>> Builder, after that you would need to do any further editing of this menu 
>>> in the button’s PI by adding or subtracting tabs in the button’s text.
>>> 
>>> For more info checkout the "Creating Cascading Menus” section on P182 of 
>>> the user guide.
>>> 
>>> It seems this odd behaviour started with LC8.0 (dp3), there is a bug report 
>>> Bug 18316 <http://quality.livecode.com/show_bug.cgi?id=18316>
>>> 
>>> Paul
>>> 
>>>> On 19 Nov 2017, at 03:29, Yves COPPE via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> on macOS 10.13.1 and LiveCode 8.1.7
>>>> 
>>>> In the Menu Builder, I’ve made different menu items
>>>> How can I create an submenu item of a menu item ?
>>>> 
>>>> Thanks.
>>>> 
>>>> 
>>>> Greetings.
>>>> 
>>>> Yves COPPE
>>>> yvesco...@mac.com
>>>> 
>>>> ___
>>>> 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/listinfo/use-livecode
>>> 
>>> ___
>>> 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/listinfo/use-livecode
>> 
>> 
>> ___
>> 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/listinfo/use-livecode
> 
> ___
> 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/listinfo/use-livecode


___
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/listinfo/use-livecode

Re: submenu

2017-11-19 Thread Yves COPPE via use-livecode
Hello,

When I move the menu (B) just after another menu (A) and want to make Menu (B) 
a submenu of menu (A), this icon you describe is disabled !


Greetings.

> Le 19 nov. 2017 à 18:51, Paul Hibbert via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> In the Menu Builder, underneath the [Delete Item] button, there are two 
> icons. The left one is to “Make the submenu item into a menu item” and the 
> right one will “Make the selected menu item into a submenu item".
> 
> On a side note, while checking this out and refreshing my memory of the menu 
> builder, I noticed that the submenu items disappear from the list if you 
> close and re-open the Menu Builder, however, the items don’t disappear from 
> the button’s text in the PI, so they are intact still there. This bug means 
> you only get one shot at setting up the submenu items in the Menu Builder, 
> after that you would need to do any further editing of this menu in the 
> button’s PI by adding or subtracting tabs in the button’s text.
> 
> For more info checkout the "Creating Cascading Menus” section on P182 of the 
> user guide.
> 
> It seems this odd behaviour started with LC8.0 (dp3), there is a bug report 
> Bug 18316 <http://quality.livecode.com/show_bug.cgi?id=18316>
> 
> Paul
> 
>> On 19 Nov 2017, at 03:29, Yves COPPE via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Hello,
>> 
>> on macOS 10.13.1 and LiveCode 8.1.7
>> 
>> In the Menu Builder, I’ve made different menu items
>> How can I create an submenu item of a menu item ?
>> 
>> Thanks.
>> 
>> 
>> Greetings.
>> 
>> Yves COPPE
>> yvesco...@mac.com
>> 
>> ___
>> 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/listinfo/use-livecode
> 
> ___
> 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/listinfo/use-livecode


___
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/listinfo/use-livecode

submenu

2017-11-19 Thread Yves COPPE via use-livecode
Hello,

on macOS 10.13.1 and LiveCode 8.1.7

In the Menu Builder, I’ve made different menu items
How can I create an submenu item of a menu item ?

Thanks.


Greetings.

Yves COPPE
yvesco...@mac.com

___
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/listinfo/use-livecode

Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi,

Does such a text « 99/99/00 »  exist ?
You can also always say that it is possible that « 15/10/17 » is not a date in 
a certain context 

Now seriously if the function returns a valid date, you can test afterwards the 
result to see if it can be something else than a date.
Now i’m not enough expert in regEx to search something more secure than the 
function I gave previously.
Sorry.

Greetings.

Yves COPPE
yvesco...@mac.com

> Le 15 oct. 2017 à 20:57, Mark Wieder via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote:
>> On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote:
>>> I hope this works for any date format
>> ...
>>> 
>>> if 
>>> matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear)
>>>  is true then
>> Yes, it seems to work with any numeric date now.
> 
> It *does* think 99/99/00 is a date, though.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> 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/listinfo/use-livecode

___
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/listinfo/use-livecode

Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi,

I hope this works for any date format

on mouseUp

ask "Give a date"

if it is empty then exit to top

answer IsDate(it)

end mouseUp



function IsDate textToSearch

local theDay, TheMonth, TheYear

put empty into tresult

if 
matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) 
is true then

put textToSearch into tresult

else

put "Invalid Date" into tresult

end if

return tresult

end IsDate


> Le 14 oct. 2017 à 21:52, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote:
>> Try this
>> function CheckDate pDateToCheck
>> return 
>> matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])")
>> end CheckDate
> 
> Promising, but fails with dates like "1/1/19".
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> 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/listinfo/use-livecode

___
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/listinfo/use-livecode

Re: is a date

2017-10-14 Thread Yves COPPE via use-livecode
Hi,

Try this

function CheckDate pDateToCheck

return 
matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])")

end CheckDate


answer CheckDate(tDate)

> Le 14 oct. 2017 à 19:27, Roger Eller via use-livecode 
>  a écrit :
> 
> That's what I suspected.  So to build a slightly better trap, I am doing
> this:
> 
> if tDate is a date and length(tDate) > 5 and tDate contains "/" then
>   put "true"
>   else
>   put "false"
> end if
> 
> I am sure there is probably a standard way to catch all possible date
> formats (excluding "the seconds"), but this works for most.
> 
> ~Roger
> 
> 
> On Sat, Oct 14, 2017 at 12:44 PM, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Roger,
>> 
>>> Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> put "11/20/2017" is a date
>>> returns true
>>> 
>>> put "10" is a date
>>> returns true
>>> 
>>> put "raccoon" is a date
>>> returns false
>>> 
>>> 
>>> WHY is "10" seen as a date?
>> 
>> looks like the engine is seeing seconds also as a possible valid date.
>> 
>> convert 0 to long date and long time;put it -> Thursday, January 1, 1970
>> 1:00:00 AM
>> 1:00:00 = DST here in germany!
>> 
>> convert 10 to long date and long time;put it -> Thursday, January 1, 1970
>> 1:00:10 AM
>> etc...
>> 
>> And of course:
>> put (the seconds) is a date -> TRUE
>> 
>>> ~Roger
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> http://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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/listinfo/use-livecode
>> 
> ___
> 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/listinfo/use-livecode

___
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/listinfo/use-livecode

Re: SubMenu

2017-01-25 Thread Yves COPPE via use-livecode
Hi,

I’ve tried it as you say but this (two) icons with 3 bars are disabled and so 
it doesn’t luck
Any idea ?

Cordialement.

Yves COPPE
yvesco...@mac.com





> Le 26 janv. 2017 à 00:42, J. Landman Gay via use-livecode 
> <use-livecode@lists.runrev.com> a écrit :
> 
> On 1/25/17 2:34 PM, Yves COPPE via use-livecode wrote:
>> How can I create a submenu with the Menu Builder in LiveCode 8.1.2 ?
> 
> Create a new menu item in the right-side column. Select the new item and 
> click the icon with 3 bars and a right-pointing arrow just above the column. 
> (It's under the "Delete Item" button.) That moves it into a submenu.
> 
> Really all it does is add a tab before the menu item name. You can do that 
> manually too by editing the menu button contents.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> 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/listinfo/use-livecode

___
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/listinfo/use-livecode

SubMenu

2017-01-25 Thread Yves COPPE via use-livecode
Hello,

How can I create a submenu with the Menu Builder in LiveCode 8.1.2 ?

Thanks.

Greetings.

Yves COPPE
yvesco...@mac.com

___
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/listinfo/use-livecode


Re: side effect on mac with LC

2017-01-17 Thread Yves COPPE via use-livecode
Hi,

I will try it tomorrow
Thank you

Greetings.

Yves COPPE
yvesco...@mac.com


What you can do is the following:

When the user pushes down you register the horisontal position of the pointer 
and store this position for later use. This can be stored in a variabel or a 
custom property like this:

global gStartH


on mouseDown

put the mouseH into gStartH

end mouseDown


//You then control whether the pointer has been moved or not in a mouseUp 
handler, decide how far it should move before you slide


on mouseUp

if the mouseH > (gStartH + 100) then //has moved more than 100 pixels

lock screen for visual effect

go next card

unlock screen with visual effect push right fast

end if

if the mouseH < (gStartH-100) then //has moved more than 100 pixels

lock screen for visual effect

go previous card

unlock screen with visual effect push left fast

end if

end mouseUp


If you like you can check while the mouse is moving with the following script 
(in stead of mouseUp):


on mouseMove

if the mouse is down and the mouseH > (gStartH + 100) then //has moved more 
than 100 pixels

lock screen for visual effect

go next card

unlock screen with visual effect push right fast

end if

if the mouse is down and the mouseH < (gStart -100) then //has moved more than 
100 pixels

lock screen for visual effect

go previous card

unlock screen with visual effect push left fast

end if

end mouseMove


If you put this script in the stack, you need to make sure that the card or 
other objects do not trap the mouse messages.

Regards 
Tore Nilsen




___
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/listinfo/use-livecode


Re: side effect on mac with LC

2017-01-17 Thread Yves COPPE via use-livecode
Hi,

Sorry, but your answer is not enough clear to help me…
can you explain more with a more developed sample ?




If you mean what I think you mean, you can use "on mouseMove":

on mouseup

if the thumbpos of me <> the savedThumPos of this stack then

--it changed

doSomething

end if

set the  savedThumPos of me to the thumbPos of me

end mouseup

 Thanks.

Greetings.

Yves COPPE
___
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/listinfo/use-livecode

side effect on mac with LC

2017-01-17 Thread Yves COPPE via use-livecode
Hi list,

I’d like to make an effect typically for mobile on a mac
Is it possible with LC to have a sliding on side effect when moving 
horizontally the finger on the mouse as to let appear a « red btn » underneath 
another on front with label for example « Remove » ?
You can see that on the notes.app or mail.app ...

If someone hs a sample script therefore ??

Thanks.

Greetings.

Yves COPPE
yvesco...@mac.com

___
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/listinfo/use-livecode