Mac inclusions. Is there one for file changed?

2020-11-20 Thread Bill Vlahos via use-livecode
Where can I find documentation on the inclusions?

I’m looking to see if there is an option to mark the traffic light icon that a 
file hasn’t needs to be saved?

I have a feeling it exists but I don’t see how to find out.

Thank you,
Bill Vlahos
___
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: iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks Mark

I tried exactly your suggestion. For me, the second notification appears 
exactly as you say, but the first one doesn’t. It’s likely that I made a silly 
mistake but I can’t see what it is. I put other stuff in the log, so it’s not 
just a case of the text being overwritten. Obviously the app does go into the 
background, since it is detected coming back to the foreground. This test was 
on the Xcode simulator, but I got essentially the same results on a real iPhone.

Strange.

Graham


> On 20 Nov 2020, at 17:21, Mark Smith  wrote:
> 
> Hi Graham, you can put something like the following in your handlers and then 
> check the log file to see when they were activated.  If you're using Xcode 
> you can download your “sandbox”  to your device. You’ll find the log file in 
> there. 
> put the long time && "UIApplicationWillResignActiveNotification detected" & 
> return after url ("file:" & specialFolderPath("documents") & "/log.txt")
> 
> for example…
> 
> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script
> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script
> 
> 
> 
> 
>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up 
>> mergNotify for two notifications as below.
>> 
>> I believe I’ve done this, and I’ve set a monitoring action (putting a text 
>> into a field) to show that these notifications have happened.
>> 
>> Of course it may be just me, but so far, I only seem to get the notification 
>> when the app comes back into the foreground (so logically it must have gone 
>> the background first),  but I just don’t get the ‘going in to the 
>> background' notification, or at least my monitoring doesn’t work.  Is there 
>> some trick of timing that I’ve missed?
>> 
>> Graham
>> 
>> 
>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> 
>>> 
>>> On iOS use mergNotify as below. Works well for me.
>>> 
>>> on openStack
>>> mergNotify "UIApplicationWillResignActiveNotification"
>>> mergNotify "UIApplicationDidBecomeActiveNotification"
>>> end openStack
>>> 
>>> on UIApplicationWillResignActiveNotification pUserInfo
>>> // Your code before the app goes to background
>>> -- your code here to handle going to the background
>>> end UIApplicationWillResignActiveNotification
>>> 
>>> on UIApplicationDidBecomeActiveNotification pUserInfo
>>> // Your code after the app comes back to foreground
>>> -- your code here to handle your app becoming active
>>> end UIApplicationDidBecomeActiveNotification
>>> 
>>> Henry
>> 
>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> And just a reminder that, under iOS, you’ll have to register to receive a “ 
>>> UIApplicationWillResignActiveNotification” message, and then write a 
>>> handler to respond to that (PS only register once in your stack script — I 
>>> learned the hard way). It’s documented under mergNotify in the dictionary 
>>> (with credit to Elanor for pointing this out to me when my “on 
>>> shutdownRequest” handlers were being ignored). 
>>> 
>>> Jacque, I believe this is what you are looking for to be notified when you 
>>> go into the background. I do some db cleanup at that time and it seems to 
>>> work.
>>> 
>>> Mark
>> 
>> ___
>> 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: filter

2020-11-20 Thread Bob Sneidar via use-livecode
Yeah, not confusing at all. ;-P

Bob S


On Nov 20, 2020, at 9:55 AM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 11/20/20 3:27 AM, David V Glasgow via use-livecode wrote:
Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?

Ha!
Yeah, I actually mistyped that (moi?).

"^\[" is all that's necessary for the filter command.

...but Klaus' form of "[[]*[]]" is actually better if the field has
[500] and then text

--
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


reading QR-code on Mac from an imported image

2020-11-20 Thread Klaus major-k via use-livecode
Hi all,

ist is possible to read the QR-code from an imported image
on the Mac? If yes, how?
The dictionary did not really enlighten me...

Thanks in advance!


Best

Klaus
--
Klaus Major
https://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


Re: filter

2020-11-20 Thread Mark Wieder via use-livecode

On 11/20/20 3:27 AM, David V Glasgow via use-livecode wrote:

Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?


Ha!
Yeah, I actually mistyped that (moi?).

"^\[" is all that's necessary for the filter command.

...but Klaus' form of "[[]*[]]" is actually better if the field has
[500] and then text

--
 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


Re: iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Mark Smith via use-livecode
Hi Graham, you can put something like the following in your handlers and then 
check the log file to see when they were activated.  If you're using Xcode you 
can download your “sandbox”  to your device. You’ll find the log file in there. 
put the long time && "UIApplicationWillResignActiveNotification detected" & 
return after url ("file:" & specialFolderPath("documents") & "/log.txt")

for example…

10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script
10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script




> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up 
> mergNotify for two notifications as below.
> 
> I believe I’ve done this, and I’ve set a monitoring action (putting a text 
> into a field) to show that these notifications have happened.
> 
> Of course it may be just me, but so far, I only seem to get the notification 
> when the app comes back into the foreground (so logically it must have gone 
> the background first),  but I just don’t get the ‘going in to the background' 
> notification, or at least my monitoring doesn’t work.  Is there some trick of 
> timing that I’ve missed?
> 
> Graham
> 
> 
>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode 
>>  wrote:
>> 
>> 
>> 
>> On iOS use mergNotify as below. Works well for me.
>> 
>> on openStack
>> mergNotify "UIApplicationWillResignActiveNotification"
>> mergNotify "UIApplicationDidBecomeActiveNotification"
>> end openStack
>> 
>> on UIApplicationWillResignActiveNotification pUserInfo
>> // Your code before the app goes to background
>> -- your code here to handle going to the background
>> end UIApplicationWillResignActiveNotification
>> 
>> on UIApplicationDidBecomeActiveNotification pUserInfo
>> // Your code after the app comes back to foreground
>> -- your code here to handle your app becoming active
>> end UIApplicationDidBecomeActiveNotification
>> 
>> Henry
> 
>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>>  wrote:
>> 
>> And just a reminder that, under iOS, you’ll have to register to receive a “ 
>> UIApplicationWillResignActiveNotification” message, and then write a handler 
>> to respond to that (PS only register once in your stack script — I learned 
>> the hard way). It’s documented under mergNotify in the dictionary (with 
>> credit to Elanor for pointing this out to me when my “on shutdownRequest” 
>> handlers were being ignored). 
>> 
>> Jacque, I believe this is what you are looking for to be notified when you 
>> go into the background. I do some db cleanup at that time and it seems to 
>> work.
>> 
>> Mark
> 
> ___
> 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


iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up 
mergNotify for two notifications as below.

I believe I’ve done this, and I’ve set a monitoring action (putting a text into 
a field) to show that these notifications have happened.

Of course it may be just me, but so far, I only seem to get the notification 
when the app comes back into the foreground (so logically it must have gone the 
background first),  but I just don’t get the ‘going in to the background' 
notification, or at least my monitoring doesn’t work.  Is there some trick of 
timing that I’ve missed?

Graham


> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode 
>  wrote:
> 
> 
> 
> On iOS use mergNotify as below. Works well for me.
> 
> on openStack
> mergNotify "UIApplicationWillResignActiveNotification"
> mergNotify "UIApplicationDidBecomeActiveNotification"
> end openStack
> 
> on UIApplicationWillResignActiveNotification pUserInfo
> // Your code before the app goes to background
> -- your code here to handle going to the background
> end UIApplicationWillResignActiveNotification
> 
> on UIApplicationDidBecomeActiveNotification pUserInfo
> // Your code after the app comes back to foreground
> -- your code here to handle your app becoming active
> end UIApplicationDidBecomeActiveNotification
> 
> Henry

> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>  wrote:
> 
> And just a reminder that, under iOS, you’ll have to register to receive a “ 
> UIApplicationWillResignActiveNotification” message, and then write a handler 
> to respond to that (PS only register once in your stack script — I learned 
> the hard way). It’s documented under mergNotify in the dictionary (with 
> credit to Elanor for pointing this out to me when my “on shutdownRequest” 
> handlers were being ignored). 
> 
> Jacque, I believe this is what you are looking for to be notified when you go 
> into the background. I do some db cleanup at that time and it seems to work.
> 
> Mark

___
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: Design Question

2020-11-20 Thread William Prothero via use-livecode
Scott:
You are absolutely correct. I have noticed, though, that busy profs prefer to 
use apps they are already familiar with and adding an app to look at student 
work for a single assignment would most likely put them off. So, I’m wanting to 
get student work in a format that can be either viewed with common apps (e.g. 
word, excel, etc) but possibly with a custom livecode app as an option.

I’m still working to finish the student part of the app itself, but this design 
rumination is very helpful.
Best,
Bill

William A. Prothero
https://earthlearningsolutions.org

> On Nov 17, 2020, at 4:42 PM, scott--- via use-livecode 
>  wrote:
> 
> For getting it FROM the student, why not just use a livecode stack file. It 
> could contain everything and be highly editable. For returning it TO the 
> student you could use a pdf. 
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> --
> 
>> On Nov 17, 2020, at 11:18 AM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Richard,
>> I kinda like the pdf idea. Seems it would give me a way to encapsulate and 
>> format the text and images and perhaps a fairly defined pdf format would 
>> make it straightforward to edit it using Livecode as well.
>> Best,
>> Bill
>> 
>> William A. Prothero
>> https://earthlearningsolutions.org
>> 
>>> On Nov 17, 2020, at 10:10 AM, Richard Gaskin via use-livecode 
>>>  wrote:
>>> 
>>> William Prothero wrote:
>>> 
 It seems the effort to make this app work with learning management
 systems would be huge, something I’m definitely not up for.
>>> 
>>> It may not be.  I've made standards-compliant courseware in the past (a 
>>> while ago; the data format was XML ), and it wasn't as bad as I'd 
>>> thought.  With so much work on the modern standards I'd imagine they're far 
>>> better documented and based on more common conventions than they were in 
>>> yesteryear.
>>> 
>>> But maybe the key question is: are your customers asking for LMS 
>>> interoperability specifically?
>>> 
>>> In some segments it can make the difference between being a contender and 
>>> not being considered at all.
>>> 
>>> But I've seen many other segments that seem to have abandoned hope of a 
>>> standards-driven world of interoperable courseware, quite happy to kludge 
>>> together whatever they need to eventually arrive at a means of tracking 
>>> assessment.
>>> 
>>> If no one's asking you for LMS compatibility, there would seem to need to 
>>> bother.
>>> 
>>> If PDF suffices, it's certainly easy to do in LC.
>>> 
>>> -- 
>>> Richard Gaskin
>>> Fourth World Systems
>>> Software Design and Development for the Desktop, Mobile, and the Web
>>> 
>>> ambassa...@fourthworld.comhttp://www.FourthWorld.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: filter

2020-11-20 Thread David V Glasgow via use-livecode
Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?

Cheers

David G

> On 20 Nov 2020, at 8:44 am, Klaus major-k via use-livecode 
>  wrote:
> 
>> ^ = start at beginning of line
>> \[ = a literal "[" character ("\" escapes whatever comes next)
>> + = at least one of those characters

___
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: filter

2020-11-20 Thread Klaus major-k via use-livecode
Hi Mark,

> Am 20.11.2020 um 00:55 schrieb Mark Wieder via use-livecode 
> :
> On 11/19/20 9:09 AM, Klaus major-k via use-livecode wrote:
>> Hi Mark,
>>> Am 19.11.2020 um 18:07 schrieb Mark Wieder via use-livecode 
>>> :
>>> On 11/19/20 7:38 AM, Mark Waddingham via use-livecode wrote:
 I think:
   filter fld 1 with "[[]*"
 Should do the trick...
>>> As an alternative,
>>> filter fld 1 with regex pattern "^\[+"
>>> also does the trick.
>> thanks, but REGEX is still a TAD over my head. ;-)
> Not really...

how do you know? 8-)

> this is at least as simple as what you just coded:
> 
> ^ = start at beginning of line
> \[ = a literal "[" character ("\" escapes whatever comes next)
> + = at least one of those characters

Thank you, now I am ready to challenge Thierry! :-D

> -- 
> Mark Wieder
> ahsoftw...@gmail.com

Best

Klaus

--
Klaus Major
https://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