Re: How to run a hidden standalone under OSX?

2017-02-15 Thread Paul Dupuis via use-livecode
On 2/15/2017 4:14 PM, Bob Sneidar via use-livecode wrote:
> I have a helper app which uses Applescript to communicate what I want it to 
> do. I call it Spinner, and all it does is display a model window with a 
> message and a spinning indicator. If I set it's LSUIElement to true, can I 
> still have it show or hide it's window? All I really want is for the app to 
> not have the icon in the dock as you expressed, but I DO want the user to see 
> it when I show it's window. 

Hi Bob,

I'm sorry, I don't know whether the LSUIElement flag would suppress any
windows - I don't think it would, but you'd need to test it.

Manually edit the info.plist file and just add these 2 lines:
LSUIElement

AFTER the  tag (3rd line or so)
and BEFORE the CFBundleDevelopmentRegion line

Hope that helps.

___
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 to run a hidden standalone under OSX?

2017-02-15 Thread Bob Sneidar via use-livecode
I have a helper app which uses Applescript to communicate what I want it to do. 
I call it Spinner, and all it does is display a model window with a message and 
a spinning indicator. If I set it's LSUIElement to true, can I still have it 
show or hide it's window? All I really want is for the app to not have the icon 
in the dock as you expressed, but I DO want the user to see it when I show it's 
window. 

I've also toyed with the idea of having a translucent window I can set to the 
size of the current app window to give it a kind of screen back effect. I don't 
think that will work on Windows though. 

Bob S


> On Feb 15, 2017, at 12:58 , Paul Dupuis via use-livecode 
>  wrote:
> 
> Someone else here in the office already solved this. I was just slow to
> read my emails I guess.
> 
> The answer is:
> 
> On OS X, you can do this by adding
>  LSUIElement true
> to its Info.plist file (within the application bundle).
> 
> It's probably easiest to do this with Property List Editor which is part
> of the OS X development tools - doesn't look like the Standalone Builder
> has a place to do it.


___
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


Formatting scripts in a field

2017-02-15 Thread hh via use-livecode
Some time ago there was a thread about formatting 'directly' the text of a
field or the selection of a field, without using manually the script editor:
http://runtime-revolution.278305.n4.nabble.com/Script-Indenting-tp4699437.html

I couldn't find a follow-up, so just in case this is not (publicly) solved,
here one way to do that.

Formatting/Beautifying means colorisation AND indentation.

So the following stack is complementary to the well known helper stacks of
Max V. and Paul H.
If you are interested you may try stack #91 in the Raspi collection:
http://forums.livecode.com/viewtopic.php?p=151405#p151405
The main script has 65 lines and simply prepares calls to handlers of LC's
script editor. Works (tested, slow only with LC 7) on Mac/Win/Linux/Raspi using 
latest of LC 6/7/8/9 (Raspi 6.5.1 and 7.0.4).
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: Re: How to run a hidden standalone under OSX?

2017-02-15 Thread Paul Dupuis via use-livecode
Someone else here in the office already solved this. I was just slow to
read my emails I guess.

The answer is:

On OS X, you can do this by adding
  LSUIElement true
to its Info.plist file (within the application bundle).

It's probably easiest to do this with Property List Editor which is part
of the OS X development tools - doesn't look like the Standalone Builder
has a place to do it.


On 2/15/2017 3:09 PM, Paul Dupuis via use-livecode wrote:
> I am trying to have my main application (an LC standalone) run a helper
> app (another LC standalone) under OSX. The helper app is "headless" - it
> displays no windows or user interaction. The main application
> communicates with the helper through sockets and shuts it down after it
> has done the data processing it does.
>
> Under Windows, I can just use "launch" and it appears in the Windows
> process list when you press Control-Alt-Delete, but does NOT appear in
> the Windows task bar.
>
> Under OSX (testing under 10.9.5), I have tried "launch" and  get
> shell("open -a" && quote & tHelper & quote && "-n -j") and get
> shell(quote & tHelper & quote && "-ui") and possible some other
> variation I have forgotten.
>
> Whatever I do, the App appears in the Dock. No app windows, but it
> always appears in the Dock.
>
> Is there any way under OSX to make launch/run/open a standalone under
> script control where it really is a background process and in no way
> appear to the user?
>
>
> ___
> 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 to run a hidden standalone under OSX?

2017-02-15 Thread Dr. Hawkins via use-livecode
On Wed, Feb 15, 2017 at 12:09 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is there any way under OSX to make launch/run/open a standalone under
> script control where it really is a background process and in no way
> appear to the user?
>

perhaps a & at the end of the shell() command to launch it as a background
process?

This is a very real need with livecode not having multiple threads.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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 to run a hidden standalone under OSX?

2017-02-15 Thread Paul Dupuis via use-livecode
I am trying to have my main application (an LC standalone) run a helper
app (another LC standalone) under OSX. The helper app is "headless" - it
displays no windows or user interaction. The main application
communicates with the helper through sockets and shuts it down after it
has done the data processing it does.

Under Windows, I can just use "launch" and it appears in the Windows
process list when you press Control-Alt-Delete, but does NOT appear in
the Windows task bar.

Under OSX (testing under 10.9.5), I have tried "launch" and  get
shell("open -a" && quote & tHelper & quote && "-n -j") and get
shell(quote & tHelper & quote && "-ui") and possible some other
variation I have forgotten.

Whatever I do, the App appears in the Dock. No app windows, but it
always appears in the Dock.

Is there any way under OSX to make launch/run/open a standalone under
script control where it really is a background process and in no way
appear to the user?


___
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: Nabble fools one of us

2017-02-15 Thread Heather Laine via use-livecode
I'm afraid not. Whoever set up the Nabble account it was no-one from LiveCode 
(or Runrev). I have no influence over this account...

Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com



> On 14 Feb 2017, at 21:37, Martin Koob via use-livecode 
>  wrote:
> 
> I cc'd my earlier message to Heather at LiveCode so maybe she can figure it
> out.
> 
> Martin
> 
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Nabble-fools-one-of-us-tp4712403p4712413.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


___
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