Re: No support for 24bit/96kHz audio file?

2020-01-22 Thread Stephen Barncard via use-livecode
No and my biggest gripe about live code right now.

On Wed, Jan 22, 2020 at 16:43 Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:

> aiff or wav?
>
> Hi,
>
> i imprted some short audiofiles 24bit/96kHz but it seems LC does some
> kind of downsampling or changes the frequency.
>
> As it plays now very looow.
>
> Is the max 16bit/44.1kHz ?
>
> Any idea?
>
>
> Thanks,
>
> Jerry
>
>
> ___
> 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
>
-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
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: No support for 24bit/96kHz audio file?

2020-01-22 Thread Sannyasin Brahmanathaswami via use-livecode
aiff or wav?

Hi,

i imprted some short audiofiles 24bit/96kHz but it seems LC does some
kind of downsampling or changes the frequency.

As it plays now very looow.

Is the max 16bit/44.1kHz ?

Any idea?


Thanks,

Jerry


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

2020-01-22 Thread J. Landman Gay via use-livecode

Thank you!
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 22, 2020 4:40:23 PM Ralph DiMola via use-livecode 
 wrote:



J,

Settings ==>Privacy ==>Analytics ==> Analytic Data
Crash logs can be found there.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Wednesday, January 22, 2020 4:36 PM
To: LiveCode Mailing List
Cc: J. Landman Gay
Subject: iOS crashes

My tester is getting a crash to the launcher on our iOS app (built with LC
9.5.1.) Is there a way to get a system report or a way to know what
happened?

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





___
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: Raspberry Pi 4

2020-01-22 Thread Richard Gaskin via use-livecode
Seconded. It would be good to hear how you set that up, and even better 
if you have LC playing a role in that on the RPi.

--
 Richard Gaskin
 Fourth World Systems

JJS wrote:

NIce, i would like to know how you did it.

And did you need any other service like FCM or GCM or another to get it 
out to browser or mobile devices?



JErry

Op 22-1-2020 om 20:34 schreef Kevin via use-livecode:

I’ve had my push notification server running on a Pi 3 for some years.
Just bought a Pi 4, 4gb, will try installing live code on that.

Always found the biggest overhead on the Pi is running the monitor. Seems 
quicker via VNC


Regards
Kevin Stallibrass
Sent from my iPhone


On 22 Jan 2020, at 17:00, use-livecode-request at lists.runrev.com wrote:

Raspberry Pi 4



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

2020-01-22 Thread Ralph DiMola via use-livecode
J,

Settings ==>Privacy ==>Analytics ==> Analytic Data
Crash logs can be found there.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Wednesday, January 22, 2020 4:36 PM
To: LiveCode Mailing List
Cc: J. Landman Gay
Subject: iOS crashes

My tester is getting a crash to the launcher on our iOS app (built with LC
9.5.1.) Is there a way to get a system report or a way to know what
happened?

-- 
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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-22 Thread Paul McClernan via use-livecode
I believe 32bit run mode was the default for earlier versions of LiveCode
but 9.x is 64bit by default. I bring that up out of curiosity because I had
a problem with a browser plug-in (64/32bit) running inside a LiveCode
Browser widget in the past. The plugin would crash running in 64bit,
sometimes taking LiveCode Engine with it, but if it worked perfectly in LC
in 32bit mode or earlier versions of LiveCode.  Of course the plugin worked
fine in Safari and on both 32bit and 64bit kernel machines. I've since
replaced that plug-in with my own LCB Library that does most of what I need
that fo (and also got rid of my 32bit laptop) so I didn't investigate
further.

> On Jan 20, 2020, at 07:41 , Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 2020-01-20 15:20, Matthias Rebbe via use-livecode wrote:
> >> Just want to let you know that Livecode Dev Team confirmed that this is
> a bug
> >> https://quality.livecode.com/show_bug.cgi?id=22534
> >
> > Well, we confirmed it crashed ;) Whether it is a bug in LC or Adobe DC
> or not
> > is another matter.
> >
> > There was a similar issue a very long time ago with Adobe's PDF plugin -
> it would
> > cause the browser external to crash if used (we used the system webview
> back then
> > as we do now)... The Adobe plugin was doing things it shouldn't (I can't
> recall
> > if we managed to come up with a hack in the browser external to stop it
> or not; or
> > whether Adobe eventually cleaned up their plugin!)
> >
> > Warmest Regards,
> >
> > Mark.
> >
> > --
> > Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> > LiveCode: Everyone can create apps
>
>
___
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 crashes

2020-01-22 Thread J. Landman Gay via use-livecode
My tester is getting a crash to the launcher on our iOS app (built with 
LC 9.5.1.) Is there a way to get a system report or a way to know what 
happened?


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


Re: Face/Touch ID

2020-01-22 Thread Andrew Bell via use-livecode
mergLA will handle Face ID the same as Touch ID for iOS: no extra code  
needed. It would be REALLY cool if this would work on macOS too so you  
could use it on MacBook Pros since it's using the same calls.


https://quality.livecode.com/show_bug.cgi?id=18742

--Andrew Bell


From: Dan Friedman 
To: How to use LiveCode 
Subject: Face/Touch ID
Message-ID: <6a9b4483-b896-4b2a-86a1-c0f497ca0...@clearvisiontech.com>
Content-Type: text/plain; charset="utf-8"

Greetings!

If memory serves we can use mergLA for Touch ID.   Is there a method  
for Face ID?


Thanks!
-Dan




___
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: Raspberry Pi 4

2020-01-22 Thread JJS via use-livecode

NIce, i would like to know how you did it.

And did you need any other service like FCM or GCM or another to get it 
out to browser or mobile devices?



JErry

Op 22-1-2020 om 20:34 schreef Kevin via use-livecode:

I’ve had my push notification server running on a Pi 3 for some years.
Just bought a Pi 4, 4gb, will try installing live code on that.

Always found the biggest overhead on the Pi is running the monitor. Seems 
quicker via VNC


Regards
Kevin Stallibrass
Sent from my iPhone


On 22 Jan 2020, at 17:00, use-livecode-requ...@lists.runrev.com wrote:

Raspberry Pi 4


___
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: Apple Mac menubar?

2020-01-22 Thread Trevor DeVore via use-livecode
On Wed, Jan 22, 2020 at 12:25 PM Pi Digital via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Trevor
>
> It’s so helpful to have these guides. What kind of things do you use nsSSB
> for? I totally see it’s benefits. It would be great to hear your personal
> uses as examples of usefulness.
>

My application has a screen capture component and a user can trigger screen
captures through the status bar menu, change some capture settings, and
open/close some windows/palettes in the application.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Raspberry Pi 4

2020-01-22 Thread Kevin via use-livecode
I’ve had my push notification server running on a Pi 3 for some years.
Just bought a Pi 4, 4gb, will try installing live code on that.

Always found the biggest overhead on the Pi is running the monitor. Seems 
quicker via VNC


Regards 
Kevin Stallibrass 
Sent from my iPhone

> On 22 Jan 2020, at 17:00, use-livecode-requ...@lists.runrev.com wrote:
> 
> Raspberry Pi 4


___
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: directory tree -> array

2020-01-22 Thread Brian Milby via use-livecode
Wasn’t talking about the widget but building the underlying array that it would 
display.

Thanks,
Brian
On Jan 22, 2020, 2:21 PM -0500, Richard Gaskin via use-livecode 
, wrote:
> Where is the tree widget used in the Standalone Builder?
>
> --
> Richard Gaskin
> Fourth World Systems
>
> Brian Milby wrote:
>
> > Much of the needed work is already done in the standalone builder
> > code. I don’t think it does a nested array, but it does handle things
> > like processing links/shortcuts. I’ll try to take a look to see if a
> > short recursive function could be easily built.
> >
> > Thanks,
> > Brian
> > On Jan 22, 2020, 1:59 PM -0500, Richard Gaskin wrote:
> > > Bob Sneidar wrote:
> > >
> > > > I found a populate directory demo with a tree widget, but it fails,
> > > > almost certainly because the embedded widget is out of sync with
> > > > the current tree widget. Here you go.
> > >
> > > If you turn one up it would be good to see the code.
> > >
> > > So widgets can embed other widgets? I did not know that. Does that
> > > use a reference, or a copy?
> > > --
> > > Richard Gaskin
> > > Fourth World Systems
>
>
> ___
> 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: directory tree -> array

2020-01-22 Thread Richard Gaskin via use-livecode

Where is the tree widget used in the Standalone Builder?

--
 Richard Gaskin
 Fourth World Systems

Brian Milby wrote:

> Much of the needed work is already done in the standalone builder
> code.  I don’t think it does a nested array, but it does handle things
> like processing links/shortcuts.  I’ll try to take a look to see if a
> short recursive function could be easily built.
>
> Thanks,
> Brian
> On Jan 22, 2020, 1:59 PM -0500, Richard Gaskin wrote:
>> Bob Sneidar wrote:
>>
>> > I found a populate directory demo with a tree widget, but it fails,
>> > almost certainly because the embedded widget is out of sync with
>> > the current tree widget. Here you go.
>>
>> If you turn one up it would be good to see the code.
>>
>> So widgets can embed other widgets? I did not know that. Does that
>> use a reference, or a copy?
>> --
>> Richard Gaskin
>> Fourth World Systems


___
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


No support for 24bit/96kHz audio file?

2020-01-22 Thread JJS via use-livecode

Hi,

i imprted some short audiofiles 24bit/96kHz but it seems LC does some 
kind of downsampling or changes the frequency.


As it plays now very looow.

Is the max 16bit/44.1kHz ?

Any idea?


Thanks,

Jerry


___
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: directory tree -> array

2020-01-22 Thread Brian Milby via use-livecode
Much of the needed work is already done in the standalone builder code.  I 
don’t think it does a nested array, but it does handle things like processing 
links/shortcuts.  I’ll try to take a look to see if a short recursive function 
could be easily built.

Thanks,
Brian
On Jan 22, 2020, 1:59 PM -0500, Richard Gaskin via use-livecode 
, wrote:
> Bob Sneidar wrote:
>
> > I found a populate directory demo with a tree widget, but it fails,
> > almost certainly because the embedded widget is out of sync with
> > the current tree widget. Here you go.
>
> If you turn one up it would be good to see the code.
>
> So widgets can embed other widgets? I did not know that. Does that use
> a reference, or a copy?
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com http://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: directory tree -> array

2020-01-22 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> I found a populate directory demo with a tree widget, but it fails,
> almost certainly because the embedded widget is out of sync with
> the current tree widget. Here you go.

If you turn one up it would be good to see the code.

So widgets can embed other widgets?  I did not know that. Does that use 
a reference, or a copy?


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


Re: directory tree -> array

2020-01-22 Thread Bob Sneidar via use-livecode
Won't work. The behavior is missing. 

Bob S


> On Jan 22, 2020, at 10:38 , Bob Sneidar via use-livecode 
>  wrote:
> 
> I found a populate directory demo with a tree widget, but it fails, almost 
> certainly because the embedded widget is out of sync with the current tree 
> widget. Here you go.
> 
> 
> 
>> On Jan 22, 2020, at 10:34 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> The tree view widget has an array at it's core. I seem to remember someone 
>> creating a stack that uses the tree view widget to represent a folder 
>> structure. You should be able to simply extract the array from that. I'll 
>> poke around.
>> 
>> Bob S
> 
> ___
> 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: directory tree -> array

2020-01-22 Thread Bob Sneidar via use-livecode
I found a populate directory demo with a tree widget, but it fails, almost 
certainly because the embedded widget is out of sync with the current tree 
widget. Here you go.



> On Jan 22, 2020, at 10:34 , Bob Sneidar via use-livecode 
>  wrote:
>
> The tree view widget has an array at it's core. I seem to remember someone 
> creating a stack that uses the tree view widget to represent a folder 
> structure. You should be able to simply extract the array from that. I'll 
> poke around.
>
> Bob S

___
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: directory tree -> array

2020-01-22 Thread Bob Sneidar via use-livecode
The tree view widget has an array at it's core. I seem to remember someone 
creating a stack that uses the tree view widget to represent a folder 
structure. You should be able to simply extract the array from that. I'll poke 
around. 

Bob S


> On Jan 22, 2020, at 10:21 , Bob Sneidar via use-livecode 
>  wrote:
> 
> I thought someone created a handler for this? It requires iteration. 
> 
> Bob S
> 
> 
>> On Jan 22, 2020, at 10:17 , Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> I stumbled across a code challenge for y'all, one that seems seductively 
>> simple but I don't think it is:
>> 
>> What is the simplest way to build an array that reflects the files and 
>> folders within a given folder?
>> 
>> There's a discussion about this here:
>> 
>> https://forums.livecode.com/viewtopic.php?f=7=33565
>> 
>> -- 
>> Richard Gaskin
> 
> 
> ___
> 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: directory tree -> array

2020-01-22 Thread Richard Gaskin via use-livecode
We have many handlers that deliver directory trees as lists, but arrays 
are a different beast.  Because the depth is both unknowable and varied, 
I can't think of a way to do this without resorting to "do".

--
 Richard Gaskin


Bob Sneidar wrote:

> I thought someone created a handler for this? It requires iteration.
>
> On Jan 22, 2020, at 10:17 , Richard Gaskin wrote:
>
> I stumbled across a code challenge for y'all, one that seems
> seductively simple but I don't think it is:
>
> What is the simplest way to build an array that reflects the files
> and folders within a given folder?
>
> There's a discussion about this here:
>
> https://forums.livecode.com/viewtopic.php?f=7=33565


___
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: Apple Mac menubar?

2020-01-22 Thread Pi Digital via use-livecode
Hi Trevor

It’s so helpful to have these guides. What kind of things do you use nsSSB for? 
I totally see it’s benefits. It would be great to hear your personal uses as 
examples of usefulness. 

Sean Cole
Pi Digital Prod Ltd

> On 22 Jan 2020, at 04:44, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Tue, Jan 21, 2020 at 11:59 AM Håkan Liljegren via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I this is already created by our hero Trevor Devore. Take a look at his
>> github page:
>> 
>> github.com/trevordevore/lc-macos-toolset
>> 
>> what you are looking for is the nssystem-status-bar.lcb
>> 
> 
> Thanks for the kind words Håkan. I hope that repo is helpful to people who
> are exploring LCB.
> 
> Folks - If you have access to Mac Status Menu in LC 9.6 (I don't know if it
> is available in Community or not) I would suggest using it. That is what i
> use in my applications and it works great.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.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: directory tree -> array

2020-01-22 Thread Bob Sneidar via use-livecode
I thought someone created a handler for this? It requires iteration. 

Bob S


> On Jan 22, 2020, at 10:17 , Richard Gaskin via use-livecode 
>  wrote:
> 
> I stumbled across a code challenge for y'all, one that seems seductively 
> simple but I don't think it is:
> 
> What is the simplest way to build an array that reflects the files and 
> folders within a given folder?
> 
> There's a discussion about this here:
> 
> https://forums.livecode.com/viewtopic.php?f=7=33565
> 
> -- 
> Richard Gaskin


___
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


directory tree -> array

2020-01-22 Thread Richard Gaskin via use-livecode
I stumbled across a code challenge for y'all, one that seems seductively 
simple but I don't think it is:


What is the simplest way to build an array that reflects the files and 
folders within a given folder?


There's a discussion about this here:

https://forums.livecode.com/viewtopic.php?f=7=33565

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


Handler to create Email with Attachments using AppleScript

2020-01-22 Thread Bob Sneidar via use-livecode
For your general consumption. No error checking, so send it good data. 

/**
AppleScript Create Mail. Pass a comma delimited list of email addresses, a 
subject line,  Body text and 
optionally a numbered array of file paths. Creates a new mail in the  OS X Mail 
app. 
*/

on asCreateEmail pAddressList, pSubject, pBody, aAttachments
   --create a new email
   put "tell application " & quote & "Mail" & quote & cr into tAppleScript
   put tab & \
 "set newMessage to (a reference to (make new outgoing message))" & cr 
& cr after tAppleScript
   
   -- To: address
   put tab & "tell newMessage" & cr after tAppleScript
   put tab & tab & \
 "make new recipient at beginning of to recipients" & numToChar(194) & 
cr after tAppleScript
   put tab & tab & tab & \
 "with properties {address:" & quote & item 1 of pAddressList & quote & 
"}" & cr after tAppleScript
   
   -- Bcc: addresses (if more than one item in pAddressList
   if the number of items of pAddressList >1 then
  put tab & tab & \ 
"make new cc recipient at end of cc recipients " & numToChar(194) & 
cr after tAppleScript
  put tab & tab & tab & \
"with properties {address:" & quote after tAppleScript
  
  repeat with i = 2 to the number of items of pAddressList
 put item i of pAddressList & comma after tAppleScript
  end repeat
  
  put quote & "}" & cr  & cr into last char of tAppleScript
   end if
   
   -- Subject
   put tab & tab & \
 "set the subject to " & quote & pSubject & quote & cr after 
tAppleScript
   
   -- Content
   put tab & tab & \
 "set the content to " & quote & pBody & cr & cr & quote & cr & cr 
after tAppleScript
   
   -- add attachments
   if aAttachments is an array then
  put the keys of aAttachments into tKeyList
  put tab & tab & tab & \ 
"tell content" & cr after tAppleScript
  
  repeat for each line tKey in tKeyList
 put tab & tab & tab & tab & \ 
   "make new attachment " & numToChar(194) & cr after tAppleScript
 put tab & tab & tab & tab & \ 
   "with properties {file name:" & quote after tAppleScript
 put aAttachments [tKey] & quote & "}" & cr after tAppleScript
  end repeat
   end if
   
   put tab & tab & \
 "end tell" & cr after tAppleScript
   /*
   Unsure why using send sends the email before the attachments get attached
   -- put tab & tab & "send" & cr after tAppleScript
   */
   put tab & tab & "set visible to true" & cr after tAppleScript -- displays 
email in Mail App
   
   -- close tells
   put tab & \
 "end tell" & cr after tAppleScript -- tell newMessage
   put "end tell"  & cr after tAppleScript -- tell application
   
   -- Send it!
   do tAppleScript as appleScript
   return the result -- returns empty if no errors
end asCreateEmail


___
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: Raspberry Pi 4

2020-01-22 Thread Rick Harrison via use-livecode
I have an older Raspberry Pi 2.
I had installed LC 6.x on it but
found the processor and internet
to be way too slow.

I was considering getting a Pi 4,
but noticed that no one has yet
made a good LC installer for Pi
so I haven’t pursued it.

It’s good to hear that the Pi 4 is
better.

Thanks,

Rick
___
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 browser local URLs

2020-01-22 Thread Sannyasin Brahmanathaswami via use-livecode
Jacque wrote:
Bug report here: https://quality.livecode.com/show_bug.cgi?id=22543

added the case: SivaSiva/nightly branch

which is even simpler: open stack Lexicon, Card 1 script, 

on preopencard
if the environment is not "development" the
set the url of widget "Browser" to 
(specialFolderPath("resources") & "/modules/lexicon/web/index.html")
else
set the url of widget "Browser" to 
(specialFolderPath("resources") & "/web/index.html") 
end if
end preopencard

# works in desktop, Android. 
# Fails on iOS 13.3 with a Cataline build, 9.6dp2 
# white screen app hangs

Possibly a path thing? On mobile, we are setting the index.html relative to 
stack location

BR

___
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