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
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
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

-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
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

-
jmburnod
- VIP Livecode Opensource Backer

- Posts: 2729
- Joined: Sat Dec 22, 2007 5:35 pm
-
Contact:
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

- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
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??
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
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
