How to save an invisible stack on desktop??

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

How to save an invisible stack on desktop??

Post by Fasasoftware » Thu Mar 06, 2014 8:56 pm

Hi to everybody,

How to save an invisible stack on desktop?? i'm asking this because i'm thinking to protect my program with this old but yet powerfull technique....

I need an example code please...i thank you a lot again...

best regards,

Lestroso :oops:

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

Re: How to save an invisible stack on desktop??

Post by Fasasoftware » Thu Mar 06, 2014 10:13 pm

I have tryed this code below.....and it works...but don't save an invisible stack....save ok but visible....

Code: Select all

on mouseUp
   create invisible stack "Test"
save stack "Test" as "/users/sm/Desktop/prova/Test"
end mouseUp
If i try this one below don't work.....any ideas?? thanks a lot...

Code: Select all

on mouseUp
   create invisible stack "Test"
save invisible stack "Test" as "/users/sm/Desktop/prova/Test"
end mouseUp
lestroso :oops:

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to save an invisible stack on desktop??

Post by jmburnod » Thu Mar 06, 2014 11:10 pm

Hi,
I never did that but If I have to make a file invisible on desktop I begin the file name with "." but be careful this is reserved for system files (OSX)
Best regards
Jean-Marc
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to save an invisible stack on desktop??

Post by FourthWorld » Thu Mar 06, 2014 11:16 pm

The "create invisible stack" command only governs the visibility of the window the stack is displayed in when it's opened; it doesn't affect the file's appearance in any way.

On Mac and Linux, simply putting a "." before the file name will cause it to be invisible, though of course it's not hard to find them in Terminal with "ls -a".

Windows uses a flag unique to its file system, and there's likely a way to vall VBScript from your app to handle that, though some anti-virus programs set off alarms when apps attempt to make VBScript calls.

Personally, as a user I find hidden files annoying, since they can prevent me from doing things like emptying a folder, but I won't know why unless I dive into Terminal. And as a developer, all OSes provide some means of showing hidden files, so it's not all that secure anyway.

There may be other ways to solve the problem that don't require your app to hide things from the user.

What are you looking to do??
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

Re: How to save an invisible stack on desktop??

Post by Fasasoftware » Thu Mar 06, 2014 11:41 pm

hi FourthWorld,

thank you a lot for your help....i would like to protect in some manner my program , but i don't want use protection like numbers and create big database to determinate the license of the copies of my program....do you have a simple idea to do this simple???

I thank you again...


Best regards,

Lestroso :)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to save an invisible stack on desktop??

Post by FourthWorld » Fri Mar 07, 2014 12:24 am

Have you looked at Jacque's Zygodact?
http://livecode.com/store/marketplace/zygodact-1-0-4/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply