Search found 92 matches

by icouto
Mon Sep 23, 2019 9:47 am
Forum: Mac OS
Topic: Can Livecode Create Menubar Apps?
Replies: 14
Views: 11599

Can Livecode Create Menubar Apps?

Hi all,

I was wondering whether LiveCode is able to create menubar utility apps for MacOS - you know, apps that add a menu item to the LEFT side of the global menubar (like Dash, SkyFonts, 1Password, etc.).
by icouto
Tue Jul 16, 2019 1:09 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

@bogs What makes it 'hacky' is the fact that in order to control the output of the tool you MUST use the `-ui` flags every time you run it. It's perfectly fine to have your tool use flags, but no flags should be *required* for the tool to do its 'normal' function. @FourthWorld Thanks for the link, b...
by icouto
Mon Jul 15, 2019 7:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

Hi there! Just checking whether with the upcoming version 9.5 there is now a (non-hacky) way to create compiled command-line tools with LiveCode? - i.e., a way that doesn't require us calling the tool with `-ui` arguments? Or is the only way still to just write uncompiled scripts that can be run by ...
by icouto
Mon Aug 27, 2018 12:20 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Undocumented MacOS X Deployment Options
Replies: 6
Views: 4981

Re: Undocumented MacOS X Deployment Options

Thank you for your wonderful guidance, @jaqcue! Just to confirm: if I'm not at all concerned with OS 9, I can safely leave the 'signature' and 'document type' fields alone, and all should work fine in OS X?
by icouto
Sun Aug 26, 2018 5:21 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: JSON Library Not Included in Standalone
Replies: 3
Views: 3152

Re: JSON Library Not Included in Standalone

Thanks for the heads-up, @bogs! I actually found this bug already reported:

https://quality.livecode.com/show_bug.cgi?id=21223
by icouto
Sun Aug 26, 2018 4:26 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: JSON Library Not Included in Standalone
Replies: 3
Views: 3152

JSON Library Not Included in Standalone

I'm trying to save a stack as a standalone, and it uses the JSONToArray() function. In the IDE, everything works just fine. I then set the "Standalone Application Settings", and left the default to automatically "search for required inclusions when saving the standalone application". I then saved th...
by icouto
Sun Aug 26, 2018 3:56 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

There is a command-line tool that we use for one of our CMSs, and unfortunately the developer has decided to drop support for it - they don't want to develop it any further, as it's getting too many requests for enhancements, and "taking away from time spent developing the CMS itself". I thought thi...
by icouto
Sun Aug 26, 2018 2:17 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: YAML and LiveCode
Replies: 11
Views: 8692

Re: YAML and LiveCode

I was unable to (easily) find the code in Levure that deals with parsing YAML. Nevertheless, with a little research I did find a command-line tool that converts YAML to JSON, which LiveCode can then convert into a native array. The tool that I am using is Mike Fara's "yq" , which so far has performe...
by icouto
Sun Aug 26, 2018 12:56 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

Thank you, Richard! Yes, it does output my 'Hello World' - so it is working, although only after it gives me the warning (repeatedly)... Thank you for filing the bug report! Does this mean that the only way to create a 'command-line tool' in LiveCode right now would be to run it as a hash-bang scrip...
by icouto
Sun Aug 26, 2018 12:51 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Undocumented MacOS X Deployment Options
Replies: 6
Views: 4981

Undocumented MacOS X Deployment Options

Hi all! I'm trying to understand the deployment options that we have available for MacOS X, in the 'Standalone Application Settings' dialogue - but I'm getting stuck. There seem to be options that are not documented anywhere (I've looked through the User Guide, online docs, lessons and tutorials), b...
by icouto
Sun Aug 26, 2018 12:25 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

TBH, I merely had a 'skeleton' of an app as a test - the app did nothing - as I was just starting to tinker with a command-line setup.

Is it possible to 'echo' something to the terminal, as a test? How do we go about building a '-h' or '--help'?
by icouto
Fri Aug 24, 2018 2:37 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

Thank you for the guidance, @FourthWorld! As I mentioned a couple of posts above, I've actually already looked inside the app bundle(=.app folder), found the executable, and tried running that both with and without the '-ui' flag. It runs into a fatal error: $ mylivecodetool.app/Contents/MacOS/myliv...
by icouto
Fri Aug 24, 2018 10:55 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

Thank you for the link, @AndyP - it does have some useful script code there that will come handy! Unfortunately, it does not answer any of my questions... :(
by icouto
Fri Aug 24, 2018 7:52 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

Re: How to Create a Command-Line Tool with LiveCode?

Wow, that was a quick reply! Standalones can be run facelessly by adding -ui to the command line options. What command are you using to run the standalone? I'm on a Mac, and trying to simply 'run' the standalone on the command-line - with or without '-ui' flags - does not work: $ mylivecodetool.app ...
by icouto
Fri Aug 24, 2018 6:51 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to Create a Command-Line Tool with LiveCode?
Replies: 24
Views: 17156

How to Create a Command-Line Tool with LiveCode?

I know it is possible to write 'livecode script' (.lc) files, which can then be interpreted by LiveCode Server, but I was wondering whether it is possible to create an actual command-line tool with LiveCode? - ie., an all-in-one standalone binary intended to be run from the command-line only. I have...

Go to advanced search