Re: Shell - argv parameter with SPACE

2017-06-24 Thread JB via use-livecode
THANK YOU!

JB


> On Jun 24, 2017, at 9:05 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> JB wrote:
>> I really did not use the shell command before I started posting
>> the c and java code.
>> 
>> I was starting to learn Python and would love to know hoe to
>> use the shell to integrate it into Livecode stacks.
>> 
>> In fact I would love any shell examples!
> 
> Here's a quickie off the top of my head (read "Don't sue me if it needs 
> tweaking to work" ) for using rsync to back up a local folder to a folder 
> on a remote server.
> 
> on mouseUp
>   put fld "SourceDir" into tSrc
>   put fld "DestDir" into tDest
>   put fld "User" into tUser
>   put fld "Server" into tServer
>   put fld "PortNumber" into tPort
>   if tPort is not empty then put "-p " before tPort
>   --
>   put "rsync -az "& tPort &"e& tSrc "e \
> &"e& tUser &"@" & tServer & ":" & \
> tDest "e into tCmd
>   put shell(tCmd)
> end mouseUp
> 
> 
> Note: LC's shell function isn't interactive of course, so you'll want to set 
> up a shared SSH key on the server first for passwordless login.
> 
> If you haven't done it before you'll be glad you did, and even more glad when 
> you've tested that it works well so you can turn off password login 
> altogether (ah, such slender auth.logs after that ).
> 
> This is a good guide on setting up shared SSH keys:
> 
> 
> If you need to handle passwords or other interactions in shell, I don't know 
> of a platform-indendent way to do that.  But in Linux (and maybe Mac if you 
> install via Homebrew) you can use Expect.
> 
> Here are some examples of using Expect with bash:
> 
> 
> I had started down the road of making a server management toolkit in LC a 
> while back, but time's hard to come by so I'll likely be using Ansible for 
> that soon.  If I can turn up any of my LC experiments mixing bash and Expect 
> in shell calls I'll post 'em.
> 
> Like most uses of shell, it's just like using the command line but with a lot 
> of confusing concatenation. :)
> 
> -- 
> 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: Shell - argv parameter with SPACE

2017-06-24 Thread Richard Gaskin via use-livecode

JB wrote:

I really did not use the shell command before I started posting
the c and java code.

I was starting to learn Python and would love to know hoe to
use the shell to integrate it into Livecode stacks.

In fact I would love any shell examples!


Here's a quickie off the top of my head (read "Don't sue me if it needs 
tweaking to work" ) for using rsync to back up a local folder to a 
folder on a remote server.


on mouseUp
   put fld "SourceDir" into tSrc
   put fld "DestDir" into tDest
   put fld "User" into tUser
   put fld "Server" into tServer
   put fld "PortNumber" into tPort
   if tPort is not empty then put "-p " before tPort
   --
   put "rsync -az "& tPort &"e& tSrc "e \
 &"e& tUser &"@" & tServer & ":" & \
 tDest "e into tCmd
   put shell(tCmd)
end mouseUp


Note: LC's shell function isn't interactive of course, so you'll want to 
set up a shared SSH key on the server first for passwordless login.


If you haven't done it before you'll be glad you did, and even more glad 
when you've tested that it works well so you can turn off password login 
altogether (ah, such slender auth.logs after that ).


This is a good guide on setting up shared SSH keys:


If you need to handle passwords or other interactions in shell, I don't 
know of a platform-indendent way to do that.  But in Linux (and maybe 
Mac if you install via Homebrew) you can use Expect.


Here are some examples of using Expect with bash:


I had started down the road of making a server management toolkit in LC 
a while back, but time's hard to come by so I'll likely be using Ansible 
for that soon.  If I can turn up any of my LC experiments mixing bash 
and Expect in shell calls I'll post 'em.


Like most uses of shell, it's just like using the command line but with 
a lot of confusing concatenation. :)


--
 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: Shell - argv parameter with SPACE

2017-06-24 Thread JB via use-livecode
I really did not use the shell command before I started posting
the c and java code.

I was starting to learn Python and would love to know hoe to
use the shell to integrate it into Livecode stacks.

In fact I would love any shell examples!

JB


> On Jun 24, 2017, at 8:25 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> JB wrote:
> ..
>> What the code provided does it it gives you the
>> ability to use c, c++, objective-c, and Java code
>> in your Livecode stacks.
>> 
>> For those who have a basic understanding of any
>> of these languages there is a lot of code on the
>> web they can use with little of no changes giving
>> them a lot of extra power with little effort.
>> 
>> These examples are the MAIN LINK to using other
>> code within Livecode.
>> 
>> I understand a lot of people do not know or want to
>> know other languages and this code is aimed at the
>> few people who do now or will in the future.
>> 
>> Providing this ability can attract programmers who do
>> not use Livecode now but know other languages and
>> want to use their knowledge with Livecode.
> 
> Ah, thanks.
> 
> Yes, the shell function is very handy.
> 
> In addition to calling compiled code, you can also call platform-independent 
> scripts from it as well, like Python, bash, perl, etc.
> 
> "open process" can also be useful, with some additional options shell doesn't 
> offer.
> 
> And for deep, efficient integration there's also LC's External API (though I 
> don't know where that's documented these days - Mark Wieder, do you know 
> where we can find the docs and templates for that?)
> 
> -- 
> 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: Shell - argv parameter with SPACE

2017-06-24 Thread Richard Gaskin via use-livecode

JB wrote:
...

What the code provided does it it gives you the
ability to use c, c++, objective-c, and Java code
in your Livecode stacks.

For those who have a basic understanding of any
of these languages there is a lot of code on the
web they can use with little of no changes giving
them a lot of extra power with little effort.

These examples are the MAIN LINK to using other
code within Livecode.

I understand a lot of people do not know or want to
know other languages and this code is aimed at the
few people who do now or will in the future.

Providing this ability can attract programmers who do
not use Livecode now but know other languages and
want to use their knowledge with Livecode.


Ah, thanks.

Yes, the shell function is very handy.

In addition to calling compiled code, you can also call 
platform-independent scripts from it as well, like Python, bash, perl, etc.


"open process" can also be useful, with some additional options shell 
doesn't offer.


And for deep, efficient integration there's also LC's External API 
(though I don't know where that's documented these days - Mark Wieder, 
do you know where we can find the docs and templates for that?)


--
 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: Shell - argv parameter with SPACE

2017-06-24 Thread JB via use-livecode
Hi Richard,

There are plenty of free compilers.  Xcode will
compile c, c++, and objective-c.  To compile
from the terminal you can use gcc which is a
really good compiler.

What the code provided does it it gives you the
ability to use c, c++, objective-c, and Java code
in your Livecode stacks.

For those who have a basic understanding of any
of these languages there is a lot of code on the
web they can use with little of no changes giving
them a lot of extra power with little effort.

These examples are the MAIN LINK to using other
code within Livecode.

I understand a lot of people do not know or want to
know other languages and this code is aimed at the
few people who do now or will in the future.

Providing this ability can attract programmers who do
not use Livecode now but know other languages and
want to use their knowledge with Livecode.

JB


> On Jun 24, 2017, at 7:50 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> JB, a few of these snippets have been posted to the list, but with no 
> explanatory text.  Were these intended for someone else?
> 
> If you meant to send them here, for the benefit of those of us who may not 
> have ready access to an Objective-C compiler, would you mind offering some 
> description of what we should be learning from these?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> 
> 
> JB wrote:
> 
> 
>> Compile the following objective-c code as argv_nsstring-1
>> 
>> #import 
>> 
>> int main(int argc, const char * argv[]) {
>>@autoreleasepool {
>>NSString *arg1 = [NSString stringWithUTF8String:argv[1]];
>>NSString *arg2 = [NSString stringWithUTF8String:argv[2]];
>>NSString *arg3 = [NSString stringWithUTF8String:argv[3]];
>>NSLog(@"\nArgument 1: %@\n", arg1);
>>NSLog(@"\nArgument 2: %@\n", arg2);
>>NSLog(@"\nArgument 3: %@\n", arg3);
>>}
>> 
>>return 0;
>> }
>> 
>> 
>> Enter the following code in a button;
>> 
>> on mouseUp
>>   set the defaultFolder to "~/Desktop"
>>   put "ONE TWO THREE" into tFILE
>>   put shell( "./argv_nsstring-1" && tFILE) into pData
>>   put pData into fld id 
>>   beep 2
>> end mouseUp
> 
> 
> 
> 
>> ompile the following C++ code as argv_c++
>> 
>> #include 
>> 
>> // When passing char arrays as parameters they must be pointers
>> int main(int argc, char* argv[]) {
>>if (argc < 5) { // Check the value of argc. If not enough parameters have 
>> been passed, inform user and exit.
>>std::cout << "Usage: Enter 4 Arguments & try again.\n"; // Inform the 
>> user of how to use the program
>>exit(0);
>> 
>>} else { // if we got enough parameters...
>>std::cout << argv[0] << "\n";
>>for (int i = 1; i < argc; i++) { /* We will iterate over argv[] to 
>> get the parameters stored inside.
>>  * Note that we're starting on 1 
>> because we don't need to know the
>>  * path of the program, which is 
>> stored in argv[0] */
>> 
>>std::cout << argv[i] << "\n";
>>}
>> 
>>return 0;
>>}
>> }
>> 
>> 
>> Enter the following code in a button;
>> 
>> on mouseUp
>>   set the defaultFolder to "/Users/JB/Desktop/"
>> 
>>   /* DO NOT USE ANY SPACES IN ARGUMENTS */
>>   put "One" into tFILE1
>>   put "Two" into tFILE2
>>   put "Three" into tFILE3
>>   put "Four" into tFILE4
>>   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
>>   put pData into fld id 342435
>>   beep 2
>> end mouseUp
> 
> 
> 
> 
>> on mouseUp
>>   set the defaultFolder to "~/Desktop"
>> 
>>   /* ADD SPACES IN ARGUMENTS BY USING QUOTE */
>>   --put "One" into tFILE1
>>  // Below I added a space in the filename before the word copy.
>>   put quote & "/Users/JB/Desktop/SomeFile copy.jpg" & quote into tFILE1
>>   put "Two" into tFILE2
>>   put "Three" into tFILE3
>>   put "Four" into tFILE4
>>   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
>>   put pData into fld id 
>>   beep 2
>> end mouseUp
> 
> ___
> 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: Shell - argv parameter with SPACE

2017-06-24 Thread Richard Gaskin via use-livecode
JB, a few of these snippets have been posted to the list, but with no 
explanatory text.  Were these intended for someone else?


If you meant to send them here, for the benefit of those of us who may 
not have ready access to an Objective-C compiler, would you mind 
offering some description of what we should be learning from these?


--
 Richard Gaskin
 Fourth World Systems


JB wrote:



Compile the following objective-c code as argv_nsstring-1

#import 

int main(int argc, const char * argv[]) {
@autoreleasepool {
NSString *arg1 = [NSString stringWithUTF8String:argv[1]];
NSString *arg2 = [NSString stringWithUTF8String:argv[2]];
NSString *arg3 = [NSString stringWithUTF8String:argv[3]];
NSLog(@"\nArgument 1: %@\n", arg1);
NSLog(@"\nArgument 2: %@\n", arg2);
NSLog(@"\nArgument 3: %@\n", arg3);
}

return 0;
}


Enter the following code in a button;

on mouseUp
   set the defaultFolder to "~/Desktop"
   put "ONE TWO THREE" into tFILE
   put shell( "./argv_nsstring-1" && tFILE) into pData
   put pData into fld id 
   beep 2
end mouseUp






ompile the following C++ code as argv_c++

#include 

// When passing char arrays as parameters they must be pointers
int main(int argc, char* argv[]) {
if (argc < 5) { // Check the value of argc. If not enough parameters have 
been passed, inform user and exit.
std::cout << "Usage: Enter 4 Arguments & try again.\n"; // Inform the 
user of how to use the program
exit(0);

} else { // if we got enough parameters...
std::cout << argv[0] << "\n";
for (int i = 1; i < argc; i++) { /* We will iterate over argv[] to get 
the parameters stored inside.
  * Note that we're starting on 1 
because we don't need to know the
  * path of the program, which is 
stored in argv[0] */

std::cout << argv[i] << "\n";
}

return 0;
}
}


Enter the following code in a button;

on mouseUp
   set the defaultFolder to "/Users/JB/Desktop/"

   /* DO NOT USE ANY SPACES IN ARGUMENTS */
   put "One" into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put "Four" into tFILE4
   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
   put pData into fld id 342435
   beep 2
end mouseUp






 on mouseUp
   set the defaultFolder to "~/Desktop"

   /* ADD SPACES IN ARGUMENTS BY USING QUOTE */
   --put "One" into tFILE1
  // Below I added a space in the filename before the word copy.
   put quote & "/Users/JB/Desktop/SomeFile copy.jpg" & quote into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put "Four" into tFILE4
   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
   put pData into fld id 
   beep 2
end mouseUp


___
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


Shell - argv parameter with SPACE

2017-06-24 Thread JB via use-livecode
 on mouseUp 
   set the defaultFolder to "~/Desktop"
   
   /* ADD SPACES IN ARGUMENTS BY USING QUOTE */
   --put "One" into tFILE1
  // Below I added a space in the filename before the word copy.
   put quote & "/Users/JB/Desktop/SomeFile copy.jpg" & quote into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put "Four" into tFILE4
   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
   put pData into fld id 
   beep 2
end mouseUp
___
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


Shell - C++

2017-06-24 Thread JB via use-livecode
Compile the following C++ code as argv_c++

#include 

// When passing char arrays as parameters they must be pointers
int main(int argc, char* argv[]) {
if (argc < 5) { // Check the value of argc. If not enough parameters have 
been passed, inform user and exit.
std::cout << "Usage: Enter 4 Arguments & try again.\n"; // Inform the 
user of how to use the program
exit(0);

} else { // if we got enough parameters...
std::cout << argv[0] << "\n";
for (int i = 1; i < argc; i++) { /* We will iterate over argv[] to get 
the parameters stored inside.
  * Note that we're starting on 1 
because we don't need to know the
  * path of the program, which is 
stored in argv[0] */

std::cout << argv[i] << "\n";
}

return 0;
}
}


Enter the following code in a button;

on mouseUp
   set the defaultFolder to "/Users/JB/Desktop/"
   
   /* DO NOT USE ANY SPACES IN ARGUMENTS */
   put "One" into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put "Four" into tFILE4
   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
   put pData into fld id 342435
   beep 2
end mouseUp

___
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: ListMagic still available?

2017-06-24 Thread Robert Brenstein via use-livecode
I managed to get in touch with Eric’s son at the time and offered to 
support and develop it further, but nothing came out of it, so consider 
ListMagic a history.


On 24 Jun 2017, at 1:50, Bob Sneidar via use-livecode wrote:

Thanks Matthias. I was hoping someone picked it up. It really is a 
nice piece of work. I will research to see if Jim is still able to be 
contacted.


Bob S


On Jun 23, 2017, at 16:26 , Matthias Rebbe via use-livecode 
 wrote:


Eric Chatonet, the author of ListMagic, passed away in January 2009. 
Jim Bufalini, a business partner of Eric, if i remember right, sold 
and supported the product for some time to support Eric´s family.


But i am afraid it is not sold anymore. The last post of Jim Bufalini 
to this list was 2010.


Matthias


Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌


___
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

Shell - objective-c NSString

2017-06-24 Thread JB via use-livecode
Compile the following objective-c code as argv_nsstring-1

#import 

int main(int argc, const char * argv[]) {
@autoreleasepool {
NSString *arg1 = [NSString stringWithUTF8String:argv[1]];
NSString *arg2 = [NSString stringWithUTF8String:argv[2]];
NSString *arg3 = [NSString stringWithUTF8String:argv[3]];
NSLog(@"\nArgument 1: %@\n", arg1);
NSLog(@"\nArgument 2: %@\n", arg2);
NSLog(@"\nArgument 3: %@\n", arg3);
}

return 0;
}


Enter the following code in a button;

on mouseUp
   set the defaultFolder to "~/Desktop"
   put "ONE TWO THREE" into tFILE
   put shell( "./argv_nsstring-1" && tFILE) into pData
   put pData into fld id 
   beep 2
end mouseUp

___
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: Feature Race: Pick Your Project

2017-06-24 Thread Sannyasin Brahmanathaswami via use-livecode
I had similar feelings, (I have taken almost every pitch to "pay in advance for 
X number of years for this discount or that… ) so when we get hit up again for 
development that one would hope would be just part of the product road map, it 
does indeed seem odd. Even "advanced smooth scrolling graphics" seems odd to be 
funding, since all this is doing is bring the LC mobile on parity with any 
other smooth flowing app.

This is terribly obvious, but just to say it all again:

Thinking about it, one has to appreciate the challenge the company faces. 
Having gone open source, Livecode moves to a world where everyone and his kid 
sister thinks programming is free. PHP, Javascript, python, CSS…people living 
in those world just don't pay for their tools. 

So if open source users are going up (which apparently they are)… that doesn't 
help us (to say the obvious)

If not enough of them are using LC to build products for sale to support 
themselves, OR are not using the tools in-house inside Enterprise (like we do 
here, even though we are non -profit we do have software budgets) where budgets 
are such that the ROI on paid license(s) is well worth it. And it would be easy 
enough for some unscrupulous for-profit company to have 5 coders on community 
and only one license and pretty much get away with it…(which is cheating of 
course)…

So  If the user "pie" of those whose are paying  <> equal $ to support the 
company and + hours for features, how does LC handle this, to stay alive?   And 
we all want it to stay alive…right?  

I was hoping to talk to Kevin about some other ideas for solutions… but he is 
busy. Perhaps I need to fly to Scotland for tea. In the meantime, I 
voted/pledged for the DataGrid2/GraphicsUpgrade.

Brahmanathaswamai

 


On 6/24/17, 7:41 AM, "use-livecode on behalf of Alex Tweedly via use-livecode" 
 wrote:

So the Feature Race lets me choose between "Hosting debugger" and 
Datagrid 2.

Hmpphhh!



I have a hard time voting for, or funding, Hosting debugger. I already 
paid for that, back in 2009.

___
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: How do we access the clipboard on mobile devices?

2017-06-24 Thread Jonathan Lynch via use-livecode
Does that mean I could put the text to be copied into a native field, then put 
into the clipboard from there?

Sent from my iPhone

> On Jun 24, 2017, at 4:46 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
>> On 6/24/17 2:03 PM, Jonathan Lynch via use-livecode wrote:
>> I cannot figure it out from the docs
> 
> The clipboard isn't supported in LC fields on mobile. To get full clipboard 
> support you need to use a native field.
> 
> -- 
> 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: How do we access the clipboard on mobile devices?

2017-06-24 Thread J. Landman Gay via use-livecode

On 6/24/17 2:03 PM, Jonathan Lynch via use-livecode wrote:

I cannot figure it out from the docs


The clipboard isn't supported in LC fields on mobile. To get full 
clipboard support you need to use a native field.


--
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: Trouble with Building from g8.1.5 rc1 for Early Version iOS

2017-06-24 Thread Ralph DiMola via use-livecode
I sometimes get that error on the first build with any minimum version. 
Subsequent builds work OK until LC is restarted. Try setting it back to 6.1 and 
build, if it fails build again and it should be OK. This has been reported but 
is elusive.

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 
Sannyasin Brahmanathaswami via use-livecode
Sent: Saturday, June 24, 2017 4:52 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Trouble with Building from g8.1.5 rc1 for Early Version iOS 

LC: 8.1.5 rc1
xCode: 8.3.3

I had the lowest version set to iOS 6.1

xCode balked and LC error repor dialog shows up, saying app build failed 
because all  these files/libs  (many lines in the SA dialog)  were for 10.3

OK so I went back into SA settings pick "10.3 or later"

and the build went thru

so the question is… how far back, i.e. what is the older version of iOS that 
*will* work with LC now?

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


___
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

Shell - objective-c

2017-06-24 Thread JB via use-livecode
Compile the following objective-c code as argv_objective_c

#import 

int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"\nArgument 1: %s\n", argv[1]);
NSLog(@"\nArgument 2: %s\n", argv[2]);
NSLog(@"\nArgument 3: %s\n", argv[3]);
}

return 0;
}


Enter the following code in a button;

on mouseUp
   set the defaultFolder to "~/Desktop"
   
   /* DO NOT USE ANY SPACES IN ARGUMENTS */
   put "One" into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put shell( "./argv_objective_c" && tFILE1 && tFILE2 && tFILE3) into pData
   put pData into fld id 
   beep 2
end mouseUp
___
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


Trouble with Building from g8.1.5 rc1 for Early Version iOS

2017-06-24 Thread Sannyasin Brahmanathaswami via use-livecode
LC: 8.1.5 rc1
xCode: 8.3.3

I had the lowest version set to iOS 6.1

xCode balked and LC error repor dialog shows up,
saying app build failed because all  these files/libs  (many lines in the SA 
dialog)  were for 10.3

OK so I went back into SA settings pick "10.3 or later"

and the build went thru

so the question is… how far back, i.e. what is the older version of iOS that 
*will* work with LC now?

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: Inconsistent comma requirements

2017-06-24 Thread Richmond Mathewson via use-livecode
Livecode claims that it's programming langauge is English-like (i.e. 
like a human language);


well it just got more like that: human languages are incredibly 
inconsistent.


Richmond.

On 6/24/17 10:59 pm, hh via use-livecode wrote:

Here's to all who didn't ignore the wonderful LC lessons for years!

on mouseUp
   I
end mouseUp

on I don't care
answer I'm ("fan of it.")
end I

function I'm fan
return "Beautiful LiveCode! I'm " & fan
end I'm

___
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: Inconsistent comma requirements

2017-06-24 Thread hh via use-livecode
Here's to all who didn't ignore the wonderful LC lessons for years!

on mouseUp
  I
end mouseUp

on I don't care
   answer I'm ("fan of it.")
end I

function I'm fan
   return "Beautiful LiveCode! I'm " & fan
end I'm

___
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: Set the imagesource of a character to a built in graphic

2017-06-24 Thread J. Landman Gay via use-livecode

On 6/24/17 6:12 AM, Mark Waddingham via use-livecode wrote:

There's a form of replace which preserves styling in fields these days (an FE 
we ran quite a while ago) - take a look at the replace entry in the dictionary.


That's great! I must have missed that revision. Very useful.

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


How do we access the clipboard on mobile devices?

2017-06-24 Thread Jonathan Lynch via use-livecode
I cannot figure it out from the docs 

Sent from my iPhone

___
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: Creating installers when packaging a Levure application

2017-06-24 Thread Trevor DeVore via use-livecode
On Sat, Jun 24, 2017 at 12:41 PM William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Trevore:
> I looked at the helper video and noted the yml file for each helper.
> However, I didn’t know where to add those lines to the main app yml file.
> But, I will take another look at the documentation and see if I have
> overlooked something.


 For the general settings you can put the YAML wherever you would like. All
that matters is the indentation and the examples in he docs show the proper
indentation. For example, the YAML shown in the following link can be added
to the end of the app.yml file. There are no spaces before the dropdmg
entry. It is a root level property.

https://github.com/trevordevore/levurehelper-dropDMG/blob/master/README.md#configuring-settings-for-the-helper

The DropDMG helper also has a setting that is used to name the DMG that is
created. That setting has to go in the "build profiles" section of the
app.yml file. The example in the docs shows the section of the app.yml file
that the setting goes in.

https://github.com/trevordevore/levurehelper-dropDMG/blob/master/README.md#specifying-the-name-of-the-dmg-file

-- 
Trevor DeVore
___
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: Feature Race: Pick Your Project

2017-06-24 Thread Mark Wieder via use-livecode

On 06/24/2017 10:41 AM, Alex Tweedly via use-livecode wrote:

I have a hard time voting for, or funding, Hosting debugger. I already 
paid for that, back in 2009. It was a feature described in, and mostly 
present in, the first release of on-rev. It was a significant part of my 
decision to buy a Founder's (lifetime) License for on-rev - I thought 


Yep. It was part of the client software that never worked well, and then 
never worked again. Was never open-sourced, and died on the vine. Not 
likely to fall for that line again.


--
 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: Inconsistent comma requirements

2017-06-24 Thread Richard Gaskin via use-livecode

Alex Tweedly wrote:

> On 24/06/2017 16:37, Richard Gaskin via use-livecode wrote:
>> On the other hand, perhaps a rule could be introduced that any
>> keywords used in arg strings with no commas when calling a custom
>> handler are treated as literal text.
> NO, please not.
>
> Just think of the consequences ...
>DoSomething tA and tB
> is different from
>put tA and tB into temp
>DoSomething temp
> and indeed from
>DoSomething (tA and tB)

Different, yet unambiguous, arguably more so than using "=" for 
comparison in most contexts but for assignment in variable declaration.


DoSomething tA and tB
-- "and" treated as a string, since it follows a custom command name

put tA and tB into temp
-- "put" is a built-in command, so "and" is a logical operator (and 
isn't "temp" a keyword?)


DoSomething (tA and tB)
-- Parens bypass any attempt to be English-like, forcing evaluation.


--
 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: Feature Race: Pick Your Project

2017-06-24 Thread Alex Tweedly via use-livecode
So the Feature Race lets me choose between "Hosting debugger" and 
Datagrid 2.


Hmpphhh!



I have a hard time voting for, or funding, Hosting debugger. I already 
paid for that, back in 2009. It was a feature described in, and mostly 
present in, the first release of on-rev. It was a significant part of my 
decision to buy a Founder's (lifetime) License for on-rev - I thought 
(and till do think) that remote debugging for web server is a killer 
feature, and pretty much a unique feature - afaik no other server 
language offers the equivalent. So I would like to see it happen, and 
think it wold be a good selling point feature for Livecode.


But I have a hard time paying more for it when I already did pay. Not 
only that, I paid for lifetime usage of it - and now I have the chance 
to fund it happening, AND then pay $99 per year to use it.




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


Re: Creating installers when packaging a Levure application

2017-06-24 Thread William Prothero via use-livecode
Trevore:
I looked at the helper video and noted the yml file for each helper. However, I 
didn’t know where to add those lines to the main app yml file. But, I will take 
another look at the documentation and see if I have overlooked something. 
Bill

> On Jun 23, 2017, at 4:48 PM, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Fri, Jun 23, 2017 at 6:09 PM William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Trevor:
>> This looks like a wonderful resource. However, I got stuck following the
>> “Make Installer” tutorial because I couldn’t read the text on the yml file,
>> where you modified added the installer-related directives. The text was too
>> blurry.
> 
> 
> The github page for each helper has documentation. You will find the
> properties you need to add there.
> 
> -- 
> Trevor DeVore
> 
>> 
> ___
> 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: Inconsistent comma requirements

2017-06-24 Thread Alex Tweedly via use-livecode



On 24/06/2017 16:37, Richard Gaskin via use-livecode wrote:


Two questions:

How many of you have never before known that commas are optional 
between definition arguments?


For those who've known about this, were you confused to discover that 
this only works for definitions but not calls?



I did, and no didn't find it confusing.

I discovered it maybe a year or two ago, when some code I downloaded 
used it.


I blinked a few times in surprise, shuddered - and knew that it was just 
a (mis)feature that I will never, ever use :-)




On the other hand, perhaps a rule could be introduced that any 
keywords used in arg strings with no commas when calling a custom 
handler are treated as literal text. 

NO, please not.

Just think of the consequences ...
  DoSomething tA and tB
is different from
  put tA and tB into temp
  DoSomething temp
and indeed from
  DoSomething (tA and tB)

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


RE: Inconsistent comma requirements

2017-06-24 Thread Ralph DiMola via use-livecode
I have had several of these typos in the past and they never caused
problems. In the example below pParam is argument 1. The comma is ignored.

command test, pParam
   answer pParam
end test

The parser is much better in v8 but could still be tightened up a bit. An
example is extraneous closing parens in "if" or "repeat" expression
constructs are no longer ignored. They didn't cause parsing errors prior to
v8.

My comma in the above example is minor compared to the other LC goals at
hand for the team.


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 Richard Gaskin via use-livecode
Sent: Saturday, June 24, 2017 11:38 AM
To: How to use LiveCode
Cc: Richard Gaskin
Subject: Inconsistent comma requirements

Apparently commas are optional in a handler definition, e.g.:

on DoSomething a b

But they are not optional when passing arguments to a definition, e.g.:

 Doomething a b

...throws a compilation error, but this:

 DoSomething a,b

...works.

Because most languages require commas separating arguments, and because
calling a handler explicitly requires them, it never occurred to me that the
definition would allow them to be optional.

Ideally the same rules would apply on both sides.

I can kinda understand why they don't here, but if we had comma-free
arguments we could add syntactic sugar to make things more English-like,
e.g.:

   DoSomething with a and b


Two questions:

How many of you have never before known that commas are optional between
definition arguments?

For those who've known about this, were you confused to discover that this
only works for definitions but not calls?

--
  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: Inconsistent comma requirements

2017-06-24 Thread Paul Dupuis via use-livecode
On 6/24/2017 11:37 AM, Richard Gaskin via use-livecode wrote:
> Two questions:
>
> How many of you have never before known that commas are optional
> between definition arguments?

I discovered this in LC6.7.11 only about 2 months ago and was very
surprised. I had expected that separating arguments by commas would be a
requirement
>
> For those who've known about this, were you confused to discover that
> this only works for definitions but not calls? 

I see the absence of required comma in handler definitions almost as a
"bug" in that is increases the risk of making an error. If I have
composite variable names, like 'thisParam' and I accidentally type it a
'this Param'  I now have 2 parameters for my handler where I had
intended only 1.

Unrelated aside: My biggest wish for an IDE script editor improvement
would be for a popup list of previously used variables - even if it only
listed variables you explicitly declared via a Global or Local
statement. There are so many time I am write some code and I cant
remember what I called something 100 lines previously and have to scroll
up and find it and scroll back to where I am editing.




___
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: Inconsistent comma requirements

2017-06-24 Thread J. Landman Gay via use-livecode
On June 24, 2017 11:36:32 AM Richard Gaskin via use-livecode 
 wrote:


It was just odd to find something so fundamental to the language that
I'd never seen before in all my years with LC.  And apparently there are
at least two of us.


Three.

--
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: Inconsistent comma requirements

2017-06-24 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:

> On 06/24/2017 08:37 AM, Richard Gaskin via use-livecode wrote:
>
>>DoSomething with a and b
>>
>> Two questions:
>>
>> How many of you have never before known that commas are optional
>> between definition arguments?
>
> 
>
> However, I don't think that particular syntactic sugar, at least,
> would work. The "and" operator is already in use as a logical anding
> of two parameters, so there's no way for the parser to differentiate
> between that and a list of two separate parameters.

Yeah, just a pipe dream, but a pleasant one.

On the other hand, perhaps a rule could be introduced that any keywords 
used in arg strings with no commas when calling a custom handler are 
treated as literal text.


We do generally tread lightly with keywords, and often for good reason. 
But at the same time the language is chock full o' "sometimes" rules, so 
apparently the engine is already smart enough now and then to use a 
token different ways depending on context.


For example, like other xTalks LC uses "=" as a comparison operator, but 
not for assignments as is commonly done in other languages.


But only sometimes.  When used to define a script-local var or constant, 
the engine is smart enough to notice the context and allow the readable, 
compact form that uses "=" for assignment, e.g.:


  constant kWindowMin = 500
  local sMaxConnections = 1

I'm not advocating that the engine team take time away from more 
critical tasks (like restoring video playback on Linux soon? ) to 
monkey with trivialities like comma-free handler params.


It was just odd to find something so fundamental to the language that 
I'd never seen before in all my years with LC.  And apparently there are 
at least two of us.




PS: I tried using the Dictionary to find "and" in order to review any 
nuances about its use, but alas was merely reminded why the new Dict 
isn't as useful as the old one (beyond the painfully generous white space):


When I run that search I get a great many results, unsorted and 
apparently unranked, most not relevant to my search, and with the exact 
match hidden somewhere in the bottom third of the results list, which 
mystifyingly includes "exit", "export with palette", and 
"MCISendString", among others.


Since the old Dictionary was written entirely in LiveCode and the new 
one wraps JavaScript inside the browser widget, in a way the funky 
results make a very strong statement about the power of LiveCode, 
however subtly presented:


On the TIOBE index JavaScript is listed as the world's seventh most 
popular language.  We're told that one of the reasons languages that 
reach the tipping point of the TIOBE Top 50 stay there is because they 
have vast ecosystems of good libraries available for common tasks, like 
search.


Yet what we see in practice here is that it's easier to write a custom 
indexing and search subsystem from scratch in LC than it is to merely 
find one of equivalent quality in the JavaScript world.


:)

Vive le LiveCode!

--
 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: Inconsistent comma requirements

2017-06-24 Thread Mark Wieder via use-livecode

On 06/24/2017 08:37 AM, Richard Gaskin via use-livecode wrote:


   DoSomething with a and b


Two questions:

How many of you have never before known that commas are optional between 
definition arguments?




However, I don't think that particular syntactic sugar, at least, would 
work. The "and" operator is already in use as a logical anding of two 
parameters, so there's no way for the parser to differentiate between 
that and a list of two separate parameters.


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


Inconsistent comma requirements

2017-06-24 Thread Richard Gaskin via use-livecode

Apparently commas are optional in a handler definition, e.g.:

   on DoSomething a b

But they are not optional when passing arguments to a definition, e.g.:

Doomething a b

...throws a compilation error, but this:

DoSomething a,b

...works.

Because most languages require commas separating arguments, and because 
calling a handler explicitly requires them, it never occurred to me that 
the definition would allow them to be optional.


Ideally the same rules would apply on both sides.

I can kinda understand why they don't here, but if we had comma-free 
arguments we could add syntactic sugar to make things more English-like, 
e.g.:


  DoSomething with a and b


Two questions:

How many of you have never before known that commas are optional between 
definition arguments?


For those who've known about this, were you confused to discover that 
this only works for definitions but not calls?


--
 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: Docs for IDE hooks

2017-06-24 Thread Mark Wieder via use-livecode

On 06/24/2017 02:58 AM, AndyP via use-livecode wrote:

Hi Richard,
Thanks for pointing this out.
Do you know if there is an updated full list of messages one can subscribe
to?
I've looked in the dictionary and searching for subscribe and publish does
not bring up any info?


At the moment there's a limited list of messages.

Look in the script of revidelibrary.8.livecodescript... the function 
revIDEMessages() has a list and there are three more in the 
revIDEMessageIsValid() function. From the messagebox, issuing the 
command "put revIDEMessages()" will give you most of them.


Note that none of this is documented at the moment. If you're going to 
try to subscribe to a message, make sure to unsubscribe when you close 
the subscribing stack or issue a revIDEunsubscribeall command, otherwise 
you'll end up with some unexpected experiences. Even there's no explicit 
documentation for the pubsub mechanism, the comments in the script are 
very good.


--
 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: Set the imagesource of a character to a built in graphic

2017-06-24 Thread Mark Waddingham via use-livecode
There's a form of replace which preserves styling in fields these days (an FE 
we ran quite a while ago) - take a look at the replace entry in the dictionary.

Warmest Regards,

Mark

Sent from my iPhone

> On 24 Jun 2017, at 07:14, J. Landman Gay via use-livecode 
>  wrote:
> 
>> On 6/23/17 6:48 PM, Bob Sneidar via use-livecode wrote:
>> Okay so here is an odd thing. Given that the imageSource of char 1 of eack 
>> line of a scrolling field is set to a graphic (A plus sign in this case):
>> on selectionChanged
>>put the clickChar into tChar
>>if tText is not space then exit selectionChanged
>>put word 2 of the clickLine into tLine
>>put the buttonlist of me into aButtonList -- an array
>>put aButtonList ["buttonNames"] into tButtonList -- contains names of 3 
>> buttons each line preceded by 2 tabs
>>if tButtonList is not in me then
>>   put tButtonList before line tLine+1 of me -- works great!
>>else
>>   replace tButtonList with empty in me -- removes the imageSource on 
>> char 1 of every line
>>end if
>> end selectionChanged
>> This works, but on the second click it replaces the imageSource on every 
>> line. That shouldn't happen should it??
> 
> ImageSource is sort of like text styles, you can see it most clearly in the 
> htmlText of a field. An imageSource is represented by tags just like bold, 
> italic, and other styles. You'd see the same behavior if the lines were bold 
> instead of having an imageSource.
> 
> Inserting some lines into a field doesn't change the styling of the other 
> lines, it just adds some additional unstyled text.
> 
> The replace command works only on plain text and in this case the script is 
> passing the entire content of the field. The replace command gets the full 
> text, does the replacement, and puts the text back. As far as it's concerned, 
> the imageSource characters are just spaces. Styling tags are ignored and 
> consequently stripped out.
> 
> You can either get the lineOffset of the unwanted lines and delete only 
> those, which leaves the htmlText intact elsewhere, or you could get the 
> htmlText of the field, do the replacement, and then set the field's htmlText 
> to the revised content.
> 
> -- 
> 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: Docs for IDE hooks

2017-06-24 Thread AndyP via use-livecode
Hi Richard, 
Thanks for pointing this out. 
Do you know if there is an updated full list of messages one can subscribe
to?
I've looked in the dictionary and searching for subscribe and publish does
not bring up any info?



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE a Free alternative minimalist IDE Plugin for LiveCode
TinyIDE 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Docs-for-IDE-hooks-tp4716139p4716143.html
Sent from the Revolution - User mailing list archive at Nabble.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: Release 9.0.0 DP7 / SVG / The book of the film of the poem

2017-06-24 Thread Frans Schoffelen via use-livecode

> On 23 Jun 2017, at 19:24, use-livecode-requ...@lists.runrev.com wrote:
> 
> 
> On 2017-06-23 14:36, Frans Schoffelen via use-livecode wrote:
>> Progress! But still not quite there yet.
>> Picture link of screenshot :
>> https://www.dropbox.com/s/b867mchlhyoornz/SVG.af-SVG-LC.png?dl=0 
>> 
> 
> Can you share the SVG file which is generated by Affinity designer?
> 
> Thanks,
> 
> Mark.

Thanks Mark,

I uploaded the SVG text exactly as I copied it out of the file and a text file 
AND
the Affinity designer file. Hope this gives some insight . I appreciate any 
hint.

text of SVG ( as pasted into the widget )
https://www.dropbox.com/s/lu024cmjh31dy3w/Puppet%20svg%20text.txt?dl=0

the AF designer file :
https://www.dropbox.com/s/9pe3lstaurbmy9i/POPNewAF_EXPORT.svg?dl=0

(I did try FLAT and  PRINT export options, also tried grouped vs non grouped)

This one works but does not show a lot of strokes in there.

Warmest regards

Frans



Frans Schoffelen
http://knowlegistics.com  // Software & Sound // Berlin



___
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