Re: The Detailed and Long files

2017-12-09 Thread Klaus major-k via use-livecode
Hi Swami,

> Am 10.12.2017 um 02:25 schrieb Sannyasin Brahmanathaswami via use-livecode 
> :
> 
> it was a huge step to do away with the defaultfolder requirement to get a 
> file list
> put files(somePath)  is wonderful
> but, "u" …we are still forced to change the defaultFolder to get
> the detailed|long files
> Is it too much to ask for these file info functions to also work "out of the 
> box" with just a path param to the folder?

already reported about a year ago:


But unfortunately hibernated!?

> BR

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

The Detailed and Long files

2017-12-09 Thread Sannyasin Brahmanathaswami via use-livecode
it was a huge step to do away with the defaultfolder requirement to get a file 
list

put files(somePath)  is wonderful

but, "u" …we are still forced to change the defaultFolder to get

the detailed|long files

Is it too much to ask for these file info functions to also work "out of the 
box" with just a path param to the folder?

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

Re: Script Editor problem

2017-12-09 Thread Sannyasin Brahmanathaswami via use-livecode
Mike Kerner wrote:

*set* the rect of stack "revNewScriptEditor 1" to the 50,50,900,900

Ditto Mike's solution: this happens so regularly that I just have to up arrow 
through my cmds in the msg box to find the above.  

Bit of a nuisance though.

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


Re: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Ah.

So the name of the bebugger stack has changed yet again. Third time in my
lifetime..

I wonder why the old stack "revdebuggerLibrary" still lives, though maybe it
has evolved into the library paradigm that v.8+ has embraced. 

Anyway that is the solution. And a reminder that all of LC is just stacks,
and can be accessed if you know where to look.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread Paul Hibbert via use-livecode
Monte is on the LC team now, so you can post a bug report here: 
http://quality.livecode.com 

Your login should be the same as the LC Store/site.

Paul

> On 9 Dec 2017, at 10:37, William de Smet via use-livecode 
>  wrote:
> 
> Hi Jacqueline and Paul,
> 
> I had the same thing with MergPop with iOS 7 and then MergPop needed an
> update which Monte released the next day.
> Thanks for checking Paul.
> 
> Where do I file a bug report?
> 
> 
> 
> greetings,
> 
> William
> 
> 
> 
> 2017-12-09 18:44 GMT+01:00 J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> If only one selection causes the crash, the problem is more likely to be
>> the handler it calls than the external itself. I'd look at the actions that
>> occur during the "save image" handler.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
>> 
>> 
>> On December 9, 2017 2:41:19 AM William de Smet via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Paul,
>>> 
>>> Like I said MergPop works fine in my app except the fact that the app
>>> quits after choosing 'Save Image' from the  popover sheet.
>>> Can you confirm this?
>>> 
>>> It's a brand new iPad (2 days old) with no other apps installed.
>>> 
>>> Greetings,
>>> 
>>> William
>>> 
>>> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode <
 use-livecode@lists.runrev.com> het volgende geschreven:
 
 William,
 
 Just did a quick test and to make this work I had to go to Standalone
 Application Settings > General and choose “Select inclusions for the
 standalone application”, then under Standalone Application Settings >
 Inclusions scroll down and make sure “MergPop” is selected along with any
 other inclusions necessary.
 
 It seems MergPop is not being found when allowing LC to search for the
 required inclusions. This may be a bug, but I can’t find anything on LCQC
 for it right now, although I’m sure I remember it being discussed on this
 list previously (that’s how I knew what the fix was), but I don’t remember
 the conclusion.
 
 FYI, I checked this by adding a catch tError command within the try -
 end try handler then used answer tError, it told me that LC couldn’t find
 the handler “mergPopActivity”, so it confirmed that the library was
 missing, fixing that made it work.
 
 Paul
 
 On 8 Dec 2017, at 12:00, William de Smet via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
> Hi there,
> 
> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when
> saving a
> PNG with the 'Save Image' button on the popover sheet.
> It quits the app immediately.
> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
> fine.
> 
> I do this:
> 
> try
> put specialfolderpath("documents") & "/" & "cars.png" into tPath
> export snapshot from group "cars" to file tPath as PNG
> mergPopActivity "",tPath,"",""
> get the result
> end try
> --
> 
> Anyone else seeing this?
> Is there something I can change in my script?
> 
> 
> 
> greetings,
> 
> William
> ___
> 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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

Re: can´t save Standalone

2017-12-09 Thread Richard Gaskin via use-livecode

Hillen Richard wrote:

> Using this proved datastack-method in the development environment,
> it´s ok;
> But after making a new standalone with "substacks moved in separate
> stackfiles" if I press the Save-button in stack Data I get "can´t open
> stack backup file".

With most commands which may fail for a wide range of reasons, it's 
essential to check "the result" immediately after the command.  For all 
I/O it's especially helpful to include a call to the sysError function 
so you can learn the specific error code the OS is delivering to LC.


e.g.:


  save stack "SomeStack"
  if the result is not empty then
answer the result &" ("& sysError() &")"
exit to top
  end if


--
 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: Script Editor problem

2017-12-09 Thread Mike Kerner via use-livecode
*set* the rect of stack "revNewScriptEditor 1" to the 50,50,900,900

On Sat, Dec 9, 2017 at 2:13 PM, dunbarx via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Actually tested, and though I can access the "revDebuggerLibrary" stack, I
> cannot do much with it. I can get its properties, but cannot change them,
> and if I do something like, as you might need:
>
> get the loc of stack "revDebuggerLibrary"
> set the loc of stack "revDebuggerLibrary" to item 1 of it & "," & item 2 of
> it +50
>
> Nothing happens. And if I get the loc, say, of that stack, and then move it
> around, and then get the loc again, I get the old result.
>
> I recently found an errant pulldown button right on my script editor. I was
> able to delete it, copy it to another stack, whatever. So "normal"
> operations work on that stack, sort of.
>
> You need someone better at manipulating IDE gadgetry than me.
>
> Craig
>
>
>
> --
> Sent from: http://runtime-revolution.278305.n4.nabble.com/
> Revolution-User-f278306.html
>
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: LC Server style survey: co-mingle code w/HTML?

2017-12-09 Thread Richard Gaskin via use-livecode

Brian Milby wrote:

> Human readable conversion would be easier if multi-line strings were
> supported (without the manual splitting currently needed). This would
> allow a single put statement between LC blocks of code and no need to
> fuss about quote characters.

Like bash's heredoc:

http://quality.livecode.com/show_bug.cgi?id=17471

--
 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: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Actually tested, and though I can access the "revDebuggerLibrary" stack, I
cannot do much with it. I can get its properties, but cannot change them,
and if I do something like, as you might need:

get the loc of stack "revDebuggerLibrary"
set the loc of stack "revDebuggerLibrary" to item 1 of it & "," & item 2 of
it +50

Nothing happens. And if I get the loc, say, of that stack, and then move it
around, and then get the loc again, I get the old result.

I recently found an errant pulldown button right on my script editor. I was
able to delete it, copy it to another stack, whatever. So "normal"
operations work on that stack, sort of. 

You need someone better at manipulating IDE gadgetry than me.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Script Editor problem

2017-12-09 Thread dunbarx via use-livecode
Its just a stack, called something like "revDebuggerLibrary" or someSuch.
>From msg, can you change its rect?

Craig




--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread William de Smet via use-livecode
Hi Jacqueline and Paul,

I had the same thing with MergPop with iOS 7 and then MergPop needed an
update which Monte released the next day.
Thanks for checking Paul.

Where do I file a bug report?



greetings,

William



2017-12-09 18:44 GMT+01:00 J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com>:

> If only one selection causes the crash, the problem is more likely to be
> the handler it calls than the external itself. I'd look at the actions that
> occur during the "save image" handler.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
>
>
> On December 9, 2017 2:41:19 AM William de Smet via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> Hi Paul,
>>
>> Like I said MergPop works fine in my app except the fact that the app
>> quits after choosing 'Save Image' from the  popover sheet.
>> Can you confirm this?
>>
>> It's a brand new iPad (2 days old) with no other apps installed.
>>
>> Greetings,
>>
>> William
>>
>> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode <
>>> use-livecode@lists.runrev.com> het volgende geschreven:
>>>
>>> William,
>>>
>>> Just did a quick test and to make this work I had to go to Standalone
>>> Application Settings > General and choose “Select inclusions for the
>>> standalone application”, then under Standalone Application Settings >
>>> Inclusions scroll down and make sure “MergPop” is selected along with any
>>> other inclusions necessary.
>>>
>>> It seems MergPop is not being found when allowing LC to search for the
>>> required inclusions. This may be a bug, but I can’t find anything on LCQC
>>> for it right now, although I’m sure I remember it being discussed on this
>>> list previously (that’s how I knew what the fix was), but I don’t remember
>>> the conclusion.
>>>
>>> FYI, I checked this by adding a catch tError command within the try -
>>> end try handler then used answer tError, it told me that LC couldn’t find
>>> the handler “mergPopActivity”, so it confirmed that the library was
>>> missing, fixing that made it work.
>>>
>>> Paul
>>>
>>> On 8 Dec 2017, at 12:00, William de Smet via use-livecode <
 use-livecode@lists.runrev.com> wrote:

 Hi there,

 I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when
 saving a
 PNG with the 'Save Image' button on the popover sheet.
 It quits the app immediately.
 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
 fine.

 I do this:
 
 try
 put specialfolderpath("documents") & "/" & "cars.png" into tPath
 export snapshot from group "cars" to file tPath as PNG
 mergPopActivity "",tPath,"",""
 get the result
 end try
 --

 Anyone else seeing this?
 Is there something I can change in my script?



 greetings,

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

Script Editor problem

2017-12-09 Thread Richmond Mathewson via use-livecode
My script editor (LC 8.1.8) has expanded to such an extent that both the 
top grab bar and
the bottom resize corner rae outwith the borders of my monitor so there 
seems to be no

way that I can shrink the thing down to a manageable and moveable size . . .

Richmond.
___
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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread Paul Hibbert via use-livecode
Hi William,

I took another look and can confirm what you are seeing, at first I tried with 
“Save to Files” and that works OK, I didn’t see the “Save Image” button 
initially as it was off screen, however, when I did try the “Save Image” 
button, the app just silently quit just as you see. I think this needs a bug 
report.

I also tried this in the simulator with the log window open and no entries are 
passed to the log when the app quits, so no clues there.

I looked at Photos to see if the same menu appears there, but the options 
available are different and “Save Image” isn’t available in Photos, so there 
may be something Monte needs to adjust in the mergPop plugin to fix this.

@Jacque, there is no “Save image” handler, this is an option (button) in the 
iOS menu that is triggered by mergPopActivity.

Paul

> On 9 Dec 2017, at 00:39, William de Smet via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
> Like I said MergPop works fine in my app except the fact that the app quits 
> after choosing 'Save Image' from the  popover sheet. 
> Can you confirm this?
> 
> It's a brand new iPad (2 days old) with no other apps installed. 
> 
> Greetings,
> 
> William
> 
>> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode 
>>  het volgende geschreven:
>> 
>> William,
>> 
>> Just did a quick test and to make this work I had to go to Standalone 
>> Application Settings > General and choose “Select inclusions for the 
>> standalone application”, then under Standalone Application Settings > 
>> Inclusions scroll down and make sure “MergPop” is selected along with any 
>> other inclusions necessary.
>> 
>> It seems MergPop is not being found when allowing LC to search for the 
>> required inclusions. This may be a bug, but I can’t find anything on LCQC 
>> for it right now, although I’m sure I remember it being discussed on this 
>> list previously (that’s how I knew what the fix was), but I don’t remember 
>> the conclusion.
>> 
>> FYI, I checked this by adding a catch tError command within the try - end 
>> try handler then used answer tError, it told me that LC couldn’t find the 
>> handler “mergPopActivity”, so it confirmed that the library was missing, 
>> fixing that made it work.
>> 
>> Paul
>> 
>>> On 8 Dec 2017, at 12:00, William de Smet via use-livecode 
>>>  wrote:
>>> 
>>> Hi there,
>>> 
>>> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when saving a
>>> PNG with the 'Save Image' button on the popover sheet.
>>> It quits the app immediately.
>>> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
>>> fine.
>>> 
>>> I do this:
>>> 
>>> try
>>> put specialfolderpath("documents") & "/" & "cars.png" into tPath
>>> export snapshot from group "cars" to file tPath as PNG
>>> mergPopActivity "",tPath,"",""
>>> get the result
>>> end try
>>> --
>>> 
>>> Anyone else seeing this?
>>> Is there something I can change in my script?
>>> 
>>> 
>>> 
>>> greetings,
>>> 
>>> William
>>> ___
>>> 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: can´t save Standalone

2017-12-09 Thread Mike Bonner via use-livecode
Since you already have checked the box to move substacks to separate files,
chances are that it is either a ) Saving the file as a name that is
different than the one you are using in your "open stack ..." command, or b
) its looking in the wrong place.  when you build the standalone, you can
look in the app package and visually check to see how it is being named
(right click the .app, view package contents.)  Or of course you can add a
field to your app and add code to the splash stack that will -- put the
files into field "whateverfieldyouadded" and it will tell you what files
are available in the location that the defaultfolder is set to. (you could
also have it -- answer the defaultfolder to see where its looking for files.
Of the 2 options, a or b, my guess would be A unless livecode has change
the location where it places the separated out stackfiles. (which would be
option b..)  you can poke around in the app package file and determine what
the name of the stack file is, and where its located and then adjust your
code from there.



On Sat, Dec 9, 2017 at 10:10 AM, Hillen Richard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
> There is - in splash screen method - a very simple stack Main with a
> substack Data, used since 2007.
> Stack Main opens stack Data. In stack Data there is a button "Save" with
> script
>
> "save this stack
> if the result is not empty then answer the result"
>
> Using this proved datastack-method in the development environment, it´s ok;
> But after making a new standalone with "substacks moved in separate
> stackfiles" if I press the Save-button in stack Data I get "can´t open
> stack backup file".
>
> So I cant´t save changed data.
>
> I have built the stack from button up again with the actual LC-Version,
> but same Error.
> Is there any help outside?
>
> Thank you for your helpful hints ,
> Richard.
>
> (macOS 10.13.2, Livecode 8.1.8 Community Edition)
>
>
> ___
> 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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread J. Landman Gay via use-livecode
If only one selection causes the crash, the problem is more likely to be 
the handler it calls than the external itself. I'd look at the actions that 
occur during the "save image" handler.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On December 9, 2017 2:41:19 AM William de Smet via use-livecode 
 wrote:



Hi Paul,

Like I said MergPop works fine in my app except the fact that the app quits 
after choosing 'Save Image' from the  popover sheet.

Can you confirm this?

It's a brand new iPad (2 days old) with no other apps installed.

Greetings,

William

Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode 
 het volgende geschreven:


William,

Just did a quick test and to make this work I had to go to Standalone 
Application Settings > General and choose “Select inclusions for the 
standalone application”, then under Standalone Application Settings > 
Inclusions scroll down and make sure “MergPop” is selected along with any 
other inclusions necessary.


It seems MergPop is not being found when allowing LC to search for the 
required inclusions. This may be a bug, but I can’t find anything on LCQC 
for it right now, although I’m sure I remember it being discussed on this 
list previously (that’s how I knew what the fix was), but I don’t remember 
the conclusion.


FYI, I checked this by adding a catch tError command within the try - end 
try handler then used answer tError, it told me that LC couldn’t find the 
handler “mergPopActivity”, so it confirmed that the library was missing, 
fixing that made it work.


Paul

On 8 Dec 2017, at 12:00, William de Smet via use-livecode 
 wrote:


Hi there,

I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when saving a
PNG with the 'Save Image' button on the popover sheet.
It quits the app immediately.
'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
fine.

I do this:

try
put specialfolderpath("documents") & "/" & "cars.png" into tPath
export snapshot from group "cars" to file tPath as PNG
mergPopActivity "",tPath,"",""
get the result
end try
--

Anyone else seeing this?
Is there something I can change in my script?



greetings,

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

can´t save Standalone

2017-12-09 Thread Hillen Richard via use-livecode
Hello,

There is - in splash screen method - a very simple stack Main with a substack 
Data, used since 2007.
Stack Main opens stack Data. In stack Data there is a button "Save" with script 

"save this stack
if the result is not empty then answer the result"

Using this proved datastack-method in the development environment, it´s ok;
But after making a new standalone with "substacks moved in separate stackfiles" 
if I press the Save-button in stack Data I get "can´t open stack backup file".

So I cant´t save changed data.

I have built the stack from button up again with the actual LC-Version, but 
same Error.
Is there any help outside?

Thank you for your helpful hints ,
Richard.

(macOS 10.13.2, Livecode 8.1.8 Community Edition)


___
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: LC Server style survey: co-mingle code w/HTML?

2017-12-09 Thread Brian Milby via use-livecode
Human readable conversion would be easier if multi-line strings were
supported (without the manual splitting currently needed). This would allow
a single put statement between LC blocks of code and no need to fuss about
quote characters.

Then you would only need to worry about handler definitions. The rest would
just get wrapped in a default handler. Have not looked at included though,
so not sure how that plays in yet.

When I was reading earlier replies I was thinking of using an array instead
of properties for the HTML blocks. Not sure if there is much difference in
the two though.

For debugging, I’m guessing that you (Mark) are saying that a mapping of
converted line to source line would be maintained so that when errors are
flagged the dev could be presented the correct line in source. I’m guessing
that this would also work for stepping through code.
On Sat, Dec 9, 2017 at 7:29 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2017-12-09 13:40, Alex Tweedly via use-livecode wrote:
> > Would it not be easier to transform the text blocks in to a (series
> > of) "put" statement(s) ?
> > Being "put"ted  is exactly what is going to happen to the text in the
> > non-code blocks, so why not just do that.
>
> Are you sure they would be put'd? ;)
>
> The use-case I was inferring was one of 'emulation of LC server inside
> the IDE'. Richard wasn't all that specific about the tooling he has for
> LiveCode CGIs, but I have assumed that the tooling *does* abstract
> output - after all, 'non-targeted put' in the IDE puts things in the
> message box - which is great for looking at, but not so great if it is
> going to be fed into something like a browser for display.
>
> Since we are talking about emulation (in this case basically 'compiling'
> a LC server script to a LiveCode Script to be able to run it outside of
> LC Server), the actual intermediate script which runs the same as the
> original doesn't have to be readable by humans. After all - when
> debugging you don't look at the machine code generated by a compiler but
> at the original source instead. The error positions and such can be
> easily mapped by using a sideline array which maps line/row indexes in
> the intermediate script back to the original - i.e. the intermediate
> script is just an implementation detail.
>
> Of course, the thing here is that mechanism which allows an emulation
> also allows a conversion (i.e. forever leaving the LC Server style
> behind) - the difference is just how the inline text / and
> server-specific commands (e.g. put output, put unicode, put header etc.)
> are translated. In that case, I agree that pre-processing the text
> blocks and churning them out as a sequence of 'envPut ' would
> make much more sense (envPut here because, as discussed above, 'put' is
> not *necessarily* suitable).
>
> Another option would be to turn 'put' into a 'put ... after ...' and
> then return the string (this would then be very much 'merge'-like).
> Again, the variability here is just how *that* specific command is
> converted - which could easily be made an option of the compiler script
> which does the conversion.
>
> Anyway, would what I suggested (in terms of a LCServer->LCScript
> compiler written in LCS) be a useful thing?
>
> For those concerned about performance (although performance in an
> emulator is perhaps less of a concern than production), then there is no
> real need to be. The compiling process can be done ahead of time, and
> the cost is only once-per-server-script file - the compiled version is
> an LiveCode Script so would have the same performance characteristics as
> the original. Even if you wanted to use such a thing in a dynamic case
> (e.g. merge like), then chances are each template file would be being
> used more than once, so you actually gain performance after the initial
> compile.
>
> In this case, a C++ solution would offer no real advantage - in fact a
> huge disadvantage in terms of development time, maintenance and
> adaptability.
>
> 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
___
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: LC Server style survey: co-mingle code w/HTML?

2017-12-09 Thread Mark Waddingham via use-livecode

On 2017-12-09 13:40, Alex Tweedly via use-livecode wrote:

Would it not be easier to transform the text blocks in to a (series
of) "put" statement(s) ?
Being "put"ted  is exactly what is going to happen to the text in the
non-code blocks, so why not just do that.


Are you sure they would be put'd? ;)

The use-case I was inferring was one of 'emulation of LC server inside 
the IDE'. Richard wasn't all that specific about the tooling he has for 
LiveCode CGIs, but I have assumed that the tooling *does* abstract 
output - after all, 'non-targeted put' in the IDE puts things in the 
message box - which is great for looking at, but not so great if it is 
going to be fed into something like a browser for display.


Since we are talking about emulation (in this case basically 'compiling' 
a LC server script to a LiveCode Script to be able to run it outside of 
LC Server), the actual intermediate script which runs the same as the 
original doesn't have to be readable by humans. After all - when 
debugging you don't look at the machine code generated by a compiler but 
at the original source instead. The error positions and such can be 
easily mapped by using a sideline array which maps line/row indexes in 
the intermediate script back to the original - i.e. the intermediate 
script is just an implementation detail.


Of course, the thing here is that mechanism which allows an emulation 
also allows a conversion (i.e. forever leaving the LC Server style 
behind) - the difference is just how the inline text / and 
server-specific commands (e.g. put output, put unicode, put header etc.) 
are translated. In that case, I agree that pre-processing the text 
blocks and churning them out as a sequence of 'envPut ' would 
make much more sense (envPut here because, as discussed above, 'put' is 
not *necessarily* suitable).


Another option would be to turn 'put' into a 'put ... after ...' and 
then return the string (this would then be very much 'merge'-like). 
Again, the variability here is just how *that* specific command is 
converted - which could easily be made an option of the compiler script 
which does the conversion.


Anyway, would what I suggested (in terms of a LCServer->LCScript 
compiler written in LCS) be a useful thing?


For those concerned about performance (although performance in an 
emulator is perhaps less of a concern than production), then there is no 
real need to be. The compiling process can be done ahead of time, and 
the cost is only once-per-server-script file - the compiled version is 
an LiveCode Script so would have the same performance characteristics as 
the original. Even if you wanted to use such a thing in a dynamic case 
(e.g. merge like), then chances are each template file would be being 
used more than once, so you actually gain performance after the initial 
compile.


In this case, a C++ solution would offer no real advantage - in fact a 
huge disadvantage in terms of development time, maintenance and 
adaptability.


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

Re: LC Server style survey: co-mingle code w/HTML?

2017-12-09 Thread Alex Tweedly via use-livecode

On 08/12/2017 17:28, Mark Waddingham via use-livecode wrote:


On 2017-12-07 19:52, Richard Gaskin via use-livecode wrote:

Would it be possible/practical to extend the merge function to at
least allow things like control structures with non-LC stuff in
between them?
A LC Server script is an alternating sequence of code and text blocks. 
Once you have that alternating sequence, you could replace the text 
blocks with a call to a handler with a parameter which is a custom 
prop of the stack containing the text content.
Would it not be easier to transform the text blocks in to a (series of) 
"put" statement(s) ?
Being "put"ted  is exactly what is going to happen to the text in the 
non-code blocks, so why not just do that.


Also, that means that the LC Server script can be turned into a 
script-only stack - which would feel more natural to me. And,  it would 
continue to be visible in-line, therefore retaining (more or less) the 
same self-documenting characteristic as the original script.


It's much more legible (to me) to replace

   
  Some data that happens to be HTML
   
  Some other data that happens to be HTML
   

with

    if a = b then
 put "  Some data that happens to be HTML " & CR
   else
     put "  Some other data that happens to be HTML & CR
   end if

rather than

  if a = b then
     someHandler myPropertyName1
   else
 someHandler myPropertyName2
   end if

OK, OK, you need to handle quotes within the HTML - but it should be 
easy enough.


-- Alex.


___
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

mergBLE?

2017-12-09 Thread Mats Åström via use-livecode
Hi all,

for a client I would like to build an OSX app that would use the phone number 
of an incoming call on an iPhone to present the documents associated with the 
client calling.

I then need to connect to the iPhone (maybe using mergBLE) and obtain the phone 
number of an incoming call.

Is this at all doable in LiveCode?

/Mats
___
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: Goofy font change question

2017-12-09 Thread Richmond Mathewson via use-livecode
Sorry: usual nonsense of trying to over-complicate matters; this works 
superbly;


on menuPick PHONT
  set the textFont of fld "fff" to PHONT
end menuPick

on mouseDown
   get the fontNames
   sort lines of it
   put it into btn "OM"
   set the label of me to "FONTS"
end mouseDown

Oh, and if one does this:

set the text of fld "fff" to PHONT

one ends up with the fontName in the field.

Richmond.

On 9/12/17 10:37 am, Mark Waddingham via use-livecode wrote:

On 2017-12-09 09:33, Richmond Mathewson via use-livecode wrote:

Can anyone tell me why this is not working?

on menuPick PHONT
   switch PHONT
  set the unicodeText of fld "fff" to PHONT
   end switch
end menuPick

on mouseDown
   get the fontNames
   sort lines of it
   put it into btn "OM"
   set the label of me to "FONTS"
end mouseDown


Without more context its hard to say - but you are using a switch 
without any cases - which I don't think works.


Also, unless PHONT is UTF-16 data, then you should be using text, and 
not unicodeText.


Warmest Regards,

Mark.


Richmond.
___
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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread William de Smet via use-livecode
Hi Paul,

Like I said MergPop works fine in my app except the fact that the app quits 
after choosing 'Save Image' from the  popover sheet. 
Can you confirm this?

It's a brand new iPad (2 days old) with no other apps installed. 

Greetings,

William

> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode 
>  het volgende geschreven:
> 
> William,
> 
> Just did a quick test and to make this work I had to go to Standalone 
> Application Settings > General and choose “Select inclusions for the 
> standalone application”, then under Standalone Application Settings > 
> Inclusions scroll down and make sure “MergPop” is selected along with any 
> other inclusions necessary.
> 
> It seems MergPop is not being found when allowing LC to search for the 
> required inclusions. This may be a bug, but I can’t find anything on LCQC for 
> it right now, although I’m sure I remember it being discussed on this list 
> previously (that’s how I knew what the fix was), but I don’t remember the 
> conclusion.
> 
> FYI, I checked this by adding a catch tError command within the try - end try 
> handler then used answer tError, it told me that LC couldn’t find the handler 
> “mergPopActivity”, so it confirmed that the library was missing, fixing that 
> made it work.
> 
> Paul
> 
>> On 8 Dec 2017, at 12:00, William de Smet via use-livecode 
>>  wrote:
>> 
>> Hi there,
>> 
>> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when saving a
>> PNG with the 'Save Image' button on the popover sheet.
>> It quits the app immediately.
>> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
>> fine.
>> 
>> I do this:
>> 
>> try
>> put specialfolderpath("documents") & "/" & "cars.png" into tPath
>> export snapshot from group "cars" to file tPath as PNG
>> mergPopActivity "",tPath,"",""
>> get the result
>> end try
>> --
>> 
>> Anyone else seeing this?
>> Is there something I can change in my script?
>> 
>> 
>> 
>> greetings,
>> 
>> William
>> ___
>> 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: Goofy font change question

2017-12-09 Thread Mark Waddingham via use-livecode

On 2017-12-09 09:33, Richmond Mathewson via use-livecode wrote:

Can anyone tell me why this is not working?

on menuPick PHONT
   switch PHONT
  set the unicodeText of fld "fff" to PHONT
   end switch
end menuPick

on mouseDown
   get the fontNames
   sort lines of it
   put it into btn "OM"
   set the label of me to "FONTS"
end mouseDown


Without more context its hard to say - but you are using a switch 
without any cases - which I don't think works.


Also, unless PHONT is UTF-16 data, then you should be using text, and 
not unicodeText.


Warmest Regards,

Mark.


Richmond.
___
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


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


Goofy font change question

2017-12-09 Thread Richmond Mathewson via use-livecode

Can anyone tell me why this is not working?

on menuPick PHONT
   switch PHONT
  set the unicodeText of fld "fff" to PHONT
   end switch
end menuPick

on mouseDown
   get the fontNames
   sort lines of it
   put it into btn "OM"
   set the label of me to "FONTS"
end mouseDown


Richmond.
___
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