Re: Maximum field height?

2020-04-05 Thread JB via use-livecode
It seems if Apple made the iOS compatible with the desktop it would solve a lot of problems. The question is why don’t they make them compatible? Is their some kind of FCC regulation that prevents Apple from using phone apps on the desktop? Back in the HyperCard days there was hyperDialer and I

** Livecode Ratings **

2020-04-26 Thread JB via use-livecode
In the past Richard Gaskin posted some info about Livecode and its position in some programming ratings. One of the top languages was C and it appears the ratings are based on search results. If you are really concerned about Livecode ratings then you can change them by posting C or other code th

Re: sqLite delete memory database

2020-04-30 Thread JB via use-livecode
I am not saying I know how to do it but are you able to read the memory like you can with a regular variable? If so maybe you can just assign each block of memory a null character. If you actually can get the memory address of the data it would be easy to delete it using C code. JB > On Apr 30

Re: sqLite delete memory database

2020-05-01 Thread JB via use-livecode
I have been testing SQLite 3 using the command line interface and it looks to me like SQLite is designed to securely delete the memory of the database automatically after it closes the database. I could be wrong but if you can’t read the memory it is probably already securely deleted when the data

Re: sqLite delete memory database

2020-05-01 Thread JB via use-livecode
its strange that it does not 'delete' from memory. Are we sure on >> this?. is this dependent on the garbage collector in LC? >> >> >> >> >> >> On Fri, May 1, 2020 at 7:14 AM JB via use-livecode < >> use-livecode@lists.r

Re: Not quite OT: Privacy Policy

2020-05-09 Thread JB via use-livecode
Even if Apple does read them you satisfied the reason for Apple to inform people on how your app is used. It is not an intent of Apple to force you to use a lawyer or require you to explain your app in legal mumbo jumbo. Most people would rather read your honest explanation than read the ones wri

Re: Externals Question from Stack Overflow

2020-05-14 Thread JB via use-livecode
Part of the question was; Can someone tell me how to obtain the pointer to g_external_name and g_external_table? How LiveCode knows it when it loads a DLL with my external? Is it possible to obtain the mentioned variables dinamically after DLL loads? I do not think you can get any pointers in

Re: What the heck? Writing and reading ios files??

2020-06-24 Thread JB via use-livecode
I didn’t test the code so I do not know what is happening with the file. But and idea to test for problems is only write code that will put something like :Hello world!” into the file and see if you can locate the file on your drive. If you still have the problem at least it can be fixed within t

Re: What the heck? Writing and reading ios files??

2020-06-24 Thread JB via use-livecode
Another solution might be to copy and paste a file or create a new file of any type and give it a name like myPath or whatever. Put that file in the same location of the directory you expect your other file to show up in. You can use any method to get the file path of your new file myPath and use

Re: What the heck? Writing and reading ios files??

2020-06-25 Thread JB via use-livecode
I don’t think the underscore character “_” should cause any problems in the pathname but if you use a space in the name you need to be sure and enclose the pathname in quotes or it will fail. JB > On Jun 25, 2020, at 1:53 PM, Terry Judd via use-livecode > wrote: > > On 26/06/2020, 02:40, "use-

Re: What the heck? Writing and reading ios files??

2020-06-25 Thread JB via use-livecode
gt; file name. Sheesh! > Bill > > William Prothero > https://earthlearningsolutions.org > >> On Jun 25, 2020, at 2:27 PM, JB via use-livecode >> wrote: >> >> I don’t think the underscore character “_” should cause any problems >> in the pathname but

Re: sorting lines by date

2020-07-10 Thread JB via use-livecode
If you are having problems with the date itself not being sorted properly you might be able to accomplish it by first converting the date to seconds and then sort the data. It will take more time but might work. JB > On Jul 10, 2020, at 3:06 PM, David V Glasgow via use-livecode > wrote: > >

Re: sorting lines by date

2020-07-10 Thread JB via use-livecode
umeric ascending or > descending. Its very fast in my experience. > > All the best. > > Tom > > On Fri, Jul 10, 2020 at 7:55 PM JB via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> If you are having problems with the date itself not being >

Re: Object naming

2020-07-27 Thread JB via use-livecode
That is really cool, Richard! JB Sent from my iPad > On Jul 27, 2020, at 10:26 PM, Richard Gaskin via use-livecode > wrote: > > Consider a simplified problem statement: > > You have two objects of the same type in a container, and you want to tell > them apart but had given them the same na

Re: ProtonMail vs Apple

2020-08-10 Thread JB via use-livecode
If you sell chocolate chip cookies and the majority of the people buy your cookies, does that make you a monopoly? If Ford designs a new car should they be forced to make companies like Chevy be able to use Chevy parts on the Ford car? Anyone can make cookies, cars, computers and mobile devices i

Re: ProtonMail vs Apple

2020-08-10 Thread JB via use-livecode
Maybe she has never been to court. JB > On Aug 10, 2020, at 3:35 PM, Mark Wieder via use-livecode > wrote: > > On 8/10/20 2:43 PM, J. Landman Gay via use-livecode wrote: >> I forgot we had a lawyer in our midst. So is Apple a monopoly in the legal >> sense? > > Ha! You used "legal" and "sen

Re: Cross Platform Font Layout - current workarounds

2020-08-25 Thread JB via use-livecode
Well it sounds like some of them expected you to get off the ship, and to do that by walking the plank. JB > On Aug 25, 2020, at 4:37 PM, Sean Cole (Pi) via use-livecode > wrote: > > Of course I'm going to respond badly to this kind > of bullying. What did you all expect! > > Sean Cole > *Pi

Re: Cross Platform Font Layout - current workarounds

2020-08-25 Thread JB via use-livecode
Chill, dude? ok, one of the cool things about LiveCode is instead of writing your program in Swift, Jave, or C, etc. is that you can easily include any of these languages in a LiveCode app. I don’t know of another programming tool that allows you to do that and do it on various os’s. Xcode allows

Re: Issue with dropbox

2020-09-10 Thread JB via use-livecode
Is it possible the app refers to folder B using the path created when folder B was not in the zipped or unzipped file therefore it can not see folder B? JB > On Sep 10, 2020, at 3:42 PM, Charles Lachat via use-livecode > wrote: > > Hi everybody, > > A friend has accepted to test my new deskt

OT: change email address

2020-09-15 Thread JB via use-livecode
Will someone please tell me how to change the email address I am using to receive messages from the LiveCode lists? I tried the run rev.com web link and the message I sent there failed and was returned. thanks, JB ___ use-livecode mailing list use-

Re: [ANN] animationEngine is free now

2018-10-02 Thread JB via use-livecode
Thanks for them many years of info, Malte. JB > On Oct 2, 2018, at 10:20 AM, Malte Pfaff-Brill via use-livecode > wrote: > > Hey all! > > Thanks for the kind words! And please excuse I did not reply earlier. Rather > busy setting up the Promo stuff at the moment. > > I’ll surely keep lurki

Re: Issues with app delivery!

2018-11-27 Thread JB via use-livecode
I have never submitted an app on the apple store but I googled i386 and here is what I get. x86_64 is for 64 bit processors. i386 is for 32 bit processors. So the question I wonder is does this have something to do with Mojave OS? From what I have read they will be eliminating the 32 bit program

Re: Issues with app delivery!

2018-11-27 Thread JB via use-livecode
correctly. > > Rick > >> On Nov 27, 2018, at 4:56 PM, JB via use-livecode >> wrote: >> >> I have never submitted an app on the apple store but >> I googled i386 and here is what I get. >> >> x86_64 is for 64 bit processors. i386 is for 32

Re: Issues with app delivery!

2018-11-28 Thread JB via use-livecode
That is really nice to know! thanks, JB > On Nov 28, 2018, at 1:39 AM, Matthias Rebbe via use-livecode > wrote: > > Another and more comfortable way would be to use App Wrapper 3, in case you > own it. > > App Wrapper has a feature called Architecture Cleanup to make Intel 64-Bit or > Inte

Re: Xcode for El Capitan

2018-12-07 Thread JB via use-livecode
I am using El Capitan 10.11.6 and my Xcode is version 8.2.1. It is possible I missed a later version but if it was upgraded automatically then that is the latest version that will work on my El Capitan. JB > On Dec 7, 2018, at 1:22 PM, Paul Dupuis via use-livecode > wrote: > > Is there any w

Re: Seeking OSX Code signing consultant... [ANSWER]

2018-12-13 Thread JB via use-livecode
That is good! So, what is the process of selling with Apple? 1. Pay for a developers license 2. Create standalone 3. Get a certificate 4. Strip out all of the 32-bit files 5. Code sign the app with terminal or another app 6. Place app on the app store or wherever JB > On Dec 13, 2018, at

Re: Repeat for each line of a variable or field?

2019-01-12 Thread JB via use-livecode
It is faster to use version 1 because accessing the lines in a variable is faster than accessing lines in a field. JB > On Jan 12, 2019, at 8:01 AM, David Epstein via use-livecode > wrote: > > I've done a little bit of speed testing showing extremely slight differences, > but wonder if anyon

Re: LC-apps for HC

2019-01-15 Thread JB via use-livecode
It is too late . . . I already noticed it. Some things you just can’t change. JB > On Jan 15, 2019, at 3:37 PM, Alejandro Tejada via use-livecode > wrote: > > Please dismiss these stray words at > the end of my previous message: > >> but >> notice that > > Al > _

Re: Phone Number Validation Function

2017-09-11 Thread JB via use-livecode
Thanks Bob. JB > On Sep 11, 2017, at 11:20 AM, Bob Sneidar via use-livecode > wrote: > > Hi all. > > Since I needed to write one, I thought I would share this phone number > validation function. NOTE: it only works for phone numbers of the following > format: > > -- pure numbers > nn

shell - c and java code

2017-09-19 Thread JB via use-livecode
To understand arguments, c and java code for your shell externals here are few links to some EXCELLENT INFO. http://mindview.net/CDs/ThinkingInC/beta3 http://www.mindviewinc.com/Books/downloads.html The first link is designed to be used to give you the basic C knowledge needed to learn the other

Re: Finding on online shop window for apps (was Re: Awful quiet around here )

2017-11-14 Thread JB via use-livecode
If you are selling it yourself instead of the app stores do you bother with code signing? JB > On Nov 14, 2017, at 8:10 AM, Matthias Rebbe via use-livecode > wrote: > > David, > > i am selling only one app (Mac,Win,Linux) online. I´ve used Kagi until they > finished their business. Kagi was

Re: Finding on online shop window for apps (was Re: Awful quiet around here )

2017-11-14 Thread JB via use-livecode
e is done by Commodo. > > For code signing Mac apps i am using the app AppWrapper with my Apple > Developer certificate. > > Matthias >> Am 14.11.2017 um 19:39 schrieb JB via use-livecode >> mailto:use-livecode@lists.runrev.com>>: >> >> If you are sell

Re: [off] Apple to unify ios/macos apps next year

2017-12-20 Thread JB via use-livecode
Is Apple going to have enough intelligence to make the ios compatible with the os desktop or will they do away with the desktop to make the new mac os like the ios? I have not been too impressed with Apple lately. If it is done right ti could be one of the best things they have done in years. JB

Re: [off] Apple to unify ios/macos apps next year

2018-01-02 Thread JB via use-livecode
panic less? Or have I missed something? > > > On 21/12/2017 01:01, Dr. Hawkins via use-livecode wrote: >> On Wed, Dec 20, 2017 at 3:35 PM, JB via use-livecode >> wrote: >>> Is Apple going to have enough intelligence to >>> make the ios compatible with the os des

Re: Link for the icon offer.

2018-02-12 Thread JB via use-livecode
Are the icons royalty free? JB > On Feb 12, 2018, at 2:17 PM, James At The Hale via use-livecode > wrote: > > Oops, seems the link to the offer page didn’t survive my copy and paste. > > Here is is in all its gory detail. > > http://click.mlsend3.com/link/c/YT04MjUzMTI4MjQ1NDM2Nzk3NTUmYz16N

Re: [OT] self-expanding archives in Mac Classic

2018-02-14 Thread JB via use-livecode
What type of self expanding archive? There are different versions of stuffit expander and it might be a disk image that needs to be mounted. Macintosh Garden has expanders and image mounters for just about any type of archive. They have a search engine that will show a lot of applications and I t

Re: [OT] self-expanding archives in Mac Classic

2018-02-14 Thread JB via use-livecode
have to open it in a computer running OS 9. > > Bob S > > >> On Feb 14, 2018, at 10:53 , JB via use-livecode >> wrote: >> >>> On my iMac PPC G5 running Mac OS 10.4.11 and Classic 9.1.2 it expands with >>> Stuffit Expander for Mac OS 9 3.5 >>&

Re: [OT] self-expanding archives in Mac Classic

2018-02-14 Thread JB via use-livecode
That is good! JB > On Feb 14, 2018, at 1:21 PM, Richmond Mathewson via use-livecode > wrote: > > Actually I managed to find a way to get Stuffit expander 3.5 on Mac OS 9 to > do the job :) > > Richmond. > > On 14/2/2018 8:53 pm, JB via use-livecode wrote: >

shell - memory

2018-02-22 Thread JB via use-livecode
If I use a shell that calls a external and it does something like read a 2 GB file into memory but it is not put into a Livecode variable or any field etc. does that used memory get connected to Livecode memory limits since a Livecode shell called the external? JB ' __

Re: HyperCard on your current Macintosh computer

2017-04-05 Thread JB via use-livecode
Thanks Richmond. A lot of the programs at Macintosh Garden will run on Mini vMac. You will find a lot of Hypercard stacks there too. http://macintoshgarden.org JB > On Apr 4, 2017, at 11:48 PM, Richmond Mathewson via use-livecode > wrote: > > https://github.co

Shell argv

2017-05-06 Thread JB via use-livecode
To use a shell command it needs to work from the terminal. I am using OS X 10.11.6 and if I try to open a Xcode c build named my_file I type in the terminal, open my_file and the file my_file will open. I want to pass arguments to argv but the never get passed. I have tried the following; op

Re: Shell argv

2017-05-08 Thread JB via use-livecode
that works. JB > On May 8, 2017, at 8:32 AM, Bob Sneidar via use-livecode > wrote: > > try man open in the terminal. That should tell you what the arguments to the > open command are. > > Bob S > > >> On May 6, 2017, at 18:46 , JB via use-livecode

Re: Shell argv

2017-05-08 Thread JB via use-livecode
Hi Mark, Thanks for the reply and info. The file is actually named Hello and it is a c program compiled with xcode. It takes the argc value and if it is less than 2 returns a message a parameter was not added. If it is 2 then it prints the value of argv[1] which would be the first argument passe

Re: Shell argv

2017-05-08 Thread JB via use-livecode
Here is the code; #include int main (int argc, char *argv[]) { if (argc < 2) printf ("You didn't enter any arguments.\n"); else printf ("Your argument at position 1 is: %s\n", argv[1]); printf ("\nYour file path is:\n%s\n\n", argv[0]); return 0; } JB __

Re: Shell argv

2017-05-08 Thread JB via use-livecode
That is a typo. In fact I tried every way and every place within the open script and if it is written different the code is not executed and I get and error. JB > On May 8, 2017, at 10:57 AM, Mark Wieder via use-livecode > wrote: > > On 05/08/2017 10:36 AM, JB via use-li

Re: Shell argv

2017-05-08 Thread JB via use-livecode
to use shell() and call it directly with the > arguments as part of the call. > > > On Mon, May 8, 2017 at 12:05 PM, JB via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> That is a typo. >> >> In fact I tried every way and every >> place

Re: Shell argv

2017-05-08 Thread JB via use-livecode
> necessary) > > If it DOES work that way from the command line, then in your script you can > a) set the folder to the location of the file, and then b) do a > shell("./theExe arg1 arg2") and it should work. Or for a) you can give a > full path specification to the

interface guide for C

2017-05-08 Thread JB via use-livecode
Does anyone have a copy of the interface guide for C that was made years ago for metacard or any other info that allows you to access c in any way at all? thanks, JB ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this u

external vs. shell

2017-05-10 Thread JB via use-livecode
Does anyone know the difference in speed and any advantages or disadvantages with calling the same code from a external vs a shell terminal app? Obviously one advantage of the shell is you would need to provide the compiled code but you do not need to install it like and external. While you can cl

Re: Writing Extensions

2017-05-17 Thread JB via use-livecode
It looks to me like a the easier stepping stone to fill the gap is just write the code in C/C++, compile it and call it using a shell coimmand. I have been doing it in C and it works really good. I am amazed at how easy it is. If you can get the C code I posted to print out the argument you will

Re: Writing Extensions

2017-05-17 Thread JB via use-livecode
use-livecode > wrote: > > On 05/17/2017 02:30 PM, JB via use-livecode wrote: >> It looks to me like a the easier stepping >> stone to fill the gap is just write the code >> in C/C++, compile it and call it using a >> shell coimmand. > > Is that working for y

Re: Why doesn't this work?

2017-05-19 Thread JB via use-livecode
It could be one of the fields has a space at the end and the other does not. JB > On May 19, 2017, at 11:20 AM, Bill Vlahos via use-livecode > wrote: > > I’m concatenating one field & a passed phone number & another field. > > The variable vNum works in the first if statement but is blank in

Re: Writing Extensions

2017-05-25 Thread JB via use-livecode
;cd" && pFilePath & return & pFileName) && arg1 && arg2 && arg3 into fld id YOURFIELD beep 2 end mouseUp JB > On May 17, 2017, at 2:49 PM, Mark Wieder via use-livecode > wrote: > > On 05/17/2017 02:30 PM, JB via use-livecode wrote: >

Re: Writing Extensions

2017-05-25 Thread JB via use-livecode
Hi Mark, Your way is much better! I just started learning Java a few days ago so the reason I did it wrong was because I did not know what I was doing. THANK YOU! JB > On May 25, 2017, at 7:45 PM, Mark Wieder via use-livecode > wrote: > > On 05/25/2017 06:58 PM, JB via use-li

Re: Writing Extensions

2017-05-26 Thread JB via use-livecode
That is nice, thanks. JB > On May 25, 2017, at 11:51 PM, Mark Wieder via use-livecode > wrote: > > On 05/25/2017 08:07 PM, JB via use-livecode wrote: >> Hi Mark, >> Your way is much better! >> I just started learning Java a few >> days ago so the reason

File - read from EOF

2017-05-27 Thread JB via use-livecode
I want to read a file as binary of any size but as crazy as it sounds I want to read in sections form the EOF and stop at the beginning of the file instead reading from the start to EOF. I have no problems opening, reading and closing files or reading in sections. Does anyone know the easiest way

Re: File - read from EOF

2017-05-27 Thread JB via use-livecode
sition to 289558088 and adjust those > numbers each loop. > > Untried, and outside my specific areas of knowledge, but I think it should > work fine. > > > > On Sat, May 27, 2017 at 7:23 PM, JB via use-livecode < > use-livecode@lists.runrev.com> wrote: > >

Re: File - read from EOF

2017-05-28 Thread JB via use-livecode
Thanks, Richard JB > On May 28, 2017, at 8:26 AM, Richard Gaskin via use-livecode > wrote: > > Mike Bonner wrote: > > > On Sat, May 27, 2017 at 7:23 PM, JB wrote: > >> I want to read a file as binary of any > >> size but as crazy as it sounds I want > >> to read in sections form the EOF and

Re: File - read from EOF

2017-05-28 Thread JB via use-livecode
That did not work for me. When I read the data is put into it so I was putting empty into it after the read to make sure it was clear. I tried not putting empty into it and used, repeat until it = empty but apparently it never became empty. JB > On May 28, 2017, at 10:37 AM, hh via use-livec

Re: File - read from EOF

2017-05-28 Thread JB via use-livecode
Thanks for the info! I almost have it by keeping track of what is read. While Livecode is very fast with text I am trying to keep the process a small as possible. If I am working of 350 files a fews seconds on each file adds up a lot. JB > On May 28, 2017, at 1:29 PM, hh via use-livecode > w

Re: File - read from EOF

2017-05-28 Thread JB via use-livecode
Thanks for the suggestion. Actually the way I am processing the data from the end makes it faster for what I need in the long run. I finally got it working but now I need to clean it up and probably re think it again since I did it so many different ways. Thanks to everyone for your help! JB

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

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 = [NSStrin

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

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 p

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

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 us

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 i

Shell - Swift

2017-06-25 Thread JB via use-livecode
Name the project args.swift /* After Build the product is a .swift file and can be run with Livecode. */ /* You can choose either */ import Foundation //import Darwin var x = 0; for arg in CommandLine.arguments { print("argument \(x) is: \(arg)") x += 1 } print("Number of arguments =

Shell - obj-c Full Example

2017-06-27 Thread JB via use-livecode
The following is a full example of how to compile and objective-c file with gcc and run with Livecode. 1. Open a text editor and paste the following objective-c code: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *arg1 = [NSString stringWithUTF8Strin

Shell - argv limits

2017-06-28 Thread JB via use-livecode
When using argv it has a character limit. I think it might be different on different systems but you can probably use a few thousand characters for each argument. You can have as many arguments as memory can handle. Probably thousands. You should refer to a file for larger data. If you want to

Shell - Java compile code

2017-06-28 Thread JB via use-livecode
To compile Java code do the following; 1. Open a text editor and paste the Java code below: public class ArgExample { public static void main(String[] args) { for(int i = 0; i < args.length; i++) { System.out.println(args[i] + " is arg " + (i+1)); } } } Sav

Re: Shell - argv limits

2017-06-28 Thread JB via use-livecode
I am guessing the is a pretty large number. JB > On Jun 28, 2017, at 4:45 PM, Mark Wieder via use-livecode > wrote: > > On 06/28/2017 04:06 PM, JB via use-livecode wrote: >> When using argv it has a character limit. I think it >> might be different on diffe

Re: Shell - argv limits

2017-06-28 Thread JB via use-livecode
No I have not but it is certainly very interesting info. Thank you, JB > On Jun 28, 2017, at 5:43 PM, Richard Gaskin via use-livecode > wrote: > > JB wrote: > > > When using argv it has a character limit. I think it > > might be different on different systems but you can > > probably use a f

Shell - c Full Example

2017-06-29 Thread JB via use-livecode
The following shows you how to compile c code from the terminal and run it in Livecode. 1. Open a text editor and paste the following c code; #include #define MAX 100 char* getReverse(char const []); int main(int argc, const char * argv[]) { char *rev; char const *str = argv[1];

Re: Shell - c Full Example

2017-06-29 Thread JB via use-livecode
Thanks for the code tip, Mark. JB > On Jun 29, 2017, at 8:20 PM, Mark Wieder via use-livecode > wrote: > > On 06/29/2017 07:40 PM, JB via use-livecode wrote: > >> char* getReverse(char const str[]){ >> static int i=0; >> static c

Shell - c++ compile with gcc

2017-06-30 Thread JB via use-livecode
To compile c++ code save file with extension .mm cd ~/Desktop g++ -Wall fileName.mm -o fileName This version is different that the c code version posted but you can use either version. The only difference is c++ has the extension .mm and then you use g++ while c has the extension .c and you use g

Shell - compile swift code

2017-06-30 Thread JB via use-livecode
Save your code on the desktop as fileName.swift open the Terminal and type; cd ~/Desktop swift fileName.swift The compiled code will appear on your desktop. JB ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subsc

Re: Shell - c Full Example

2017-07-06 Thread JB via use-livecode
You are welcome! I have never used c#. JB > On Jul 6, 2017, at 9:40 AM, Sean Cole (Pi) via use-livecode > wrote: > > Hi > Is C# any different in terms of calls and compiling? > > Thanks JB > > Sean Cole > *Pi Digital Productions Ltd* > > On 30 June 2017 at 15:35, Bob Sneidar via use-livec

Re: Image Metadata Enhancement Request

2017-07-09 Thread JB via use-livecode
I did a web search and found this info. Exiv2 is a C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata of images in various formats. Exiv2 is available as free software and with a commercial license,

Re: Mac App Store step by step instructions just updated.

2019-02-21 Thread JB via use-livecode
With the low price of software is it really even worth it to copy protect your program? Most software is not very expensive and it would be like trying to copy protect a song. People do not want songs to be copy protected. The majority of software I see on the App store does not have copy protec

Re: Mac App Store step by step instructions just updated.

2019-02-21 Thread JB via use-livecode
ks. > > Kee > >> On Feb 21, 2019, at 2:18 PM, JB via use-livecode >> wrote: >> >> With the low price of software is it really even worth it >> to copy protect your program? Most software is not >> very expensive and it would be like trying to copy &g

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread JB via use-livecode
If you use a shell with linux and maybe mac os since it is unix and a lot of linux commands work you can try the solutions on this site; https://superuser.com/questions/595177/how-to-retrieve-video-file-information-from-command-line-under-linux The above solutions will show you all kinds of info

Re: Apple Video Foundation (AVF) and .mpg files

2019-03-26 Thread JB via use-livecode
On OS X 10.11 you can use the shell command with afinfo JB:desktop JB$ afinfo /Users/JB/Desktop/myFile.mp3 File: /Users/JB/Desktop/myFile.mp3 File type ID: MPG3 Num Tracks: 1 Data format: 2 ch, 44100 Hz, '.mp3' (0x) 0 bits/channel, 0 bytes/packet, 1152 frames/pac

Re: My sticky fingers

2019-06-10 Thread JB via use-livecode
The keyboard might be worn out. JB > On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode > wrote: > > This sounds like the system's key repeat rate is set too fast. > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On

Re: Checking the host OS

2019-08-30 Thread JB via use-livecode
Below is some c code that will return the architecture on OS X. /* Determine the machine name, e.g. "x86_64". */ #include #include #include #include int main(int argc, const char * argv[]) { size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); // Get size of data to be r

Re: Checking the host OS

2019-09-01 Thread JB via use-livecode
On OS X in the terminal you can type: sysctl hw.machine and it will display the machine architecture. I don’t use the shell commands much but it looks like you can get the info without compiling code by using the code below. on mouseUp put shell( "sysctl hw.machine" ) into pData put pData

OSX File Extension

2019-09-07 Thread JB via use-livecode
Years ago you could create a file type or extension like jpeg, zip, pict etc. and then you would need to register that extension with Apple. If I create a new file extension do I need to register that extension with Apple or just start using it. The reason I am asking is I am creating a new form

Re: OSX File Extension

2019-09-07 Thread JB via use-livecode
Thanks for the info! I guess I will just start using what I want and see if it catches on. JB > On Sep 7, 2019, at 10:39 PM, Richard Gaskin via use-livecode > wrote: > > Apple no longer maintains a file type code registry.Richard GaskinFourth > World Systems > ___

Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread JB via use-livecode
I am still on macOS 10.11.6 so I don’t know much about what is happening but I was wondering if you transferred the file with a secure connection like CyberDuck does the download bit get changed? Another question that might be a work around is if you zip the file and then zip the zip of that file

Access Resource Files

2019-09-20 Thread JB via use-livecode
Does anyone know of a way to access resource files in the StandAlone .app bundle? Let’s say I want to include a jpg file in my .app bundle & then copy that file to the desktop at various times. From what I understand if you write a external to copy source file to destination file it will work unl

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
ou saying this will return the path to my resource in my app and let me copy it to the desktop? Do you have some more examples of copying the file with this procedure? JB > On Sep 20, 2019, at 1:46 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 u

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Hi Klaus, That worked but the file that appeared on the desktop had no icon like was there before and the size is zero K. JB > On Sep 20, 2019, at 2:30 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:11 schrieb JB via use-livecode

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:45 schrieb JB via use-livecode >> : >> >> Hi Klaus, >> >> That worked but the file that appeared on the desktop had >> no icon like was there before and the size is zero K. > > h

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
idea > what's wrong. > Did you use my exact syntax? If not, please post your code. > > Did you create a standalone and added the pic via "Copy files"? > >> JB >> >> >>> On Sep 20, 2019, at 2:30 AM, Klaus major-k via use-livecode >>>

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
did adding this before the other code make a difference and how can I make it work without it? Thank you very much! JB > On Sep 20, 2019, at 3:02 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:54 schrieb JB via use-livecode >> : &g

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
It only worked correctly that one time and now it is back to no icon zero bytes. JB > On Sep 20, 2019, at 3:02 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:54 schrieb JB via use-livecode >> : >> >> I used your cod

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
> Hi JB > >> Am 20.09.2019 um 12:10 schrieb JB via use-livecode >> : >> >> Now this is interesting! >> >> I added the code snipped you just gave me and put >> it above your other code. >> >> When I clicked the button it worked like

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Thanks again for your help! JB > On Sep 20, 2019, at 3:29 AM, Klaus major-k via use-livecode > wrote: > > > >> Am 20.09.2019 um 12:24 schrieb JB via use-livecode >> : >> >> The MacOs folder is there and the file gets added >> to it automatica

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Thank you for the info. I am using a earlier version and specialfolderpath("resources”) is not available but specialfolderpath(“desktop”) and others are available. I don’t think it is possible without specific code written by those who made the app bundle. Things like NSBundle etc seem to be buil

  1   2   >