Hide a folder

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Hide a folder

Post by shawnblc » Sat May 31, 2014 1:04 am

Is there a way to hide a folder? Neither of the below are working.

Code: Select all

set the vis of folder "/path to folder/" to false
or

Code: Select all


hide folder "/pathToFolder/"


Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Hide a folder

Post by Simon » Sat May 31, 2014 1:09 am

Hi shawn,
On Windows you'd shell("attrib +h fullPathToFolder")
might have to add +s not sure.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: Hide a folder

Post by charms » Sat May 31, 2014 1:18 am

On Linux and MacOS the equivalent would be to set a dot in front of the folder. You could just move the directory from it's original filename to ".yourfolder".

shell("mv yourfolder .yourfolder")

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: Hide a folder

Post by shawnblc » Sat May 31, 2014 1:28 am

I'm on RMBP running 10.9.3 w/ VM Ware running Win 7 Ultimate, but I was more thinking of OSX for this.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Hide a folder

Post by jacque » Sun Jun 01, 2014 5:50 am

charms wrote:On Linux and MacOS the equivalent would be to set a dot in front of the folder. You could just move the directory from it's original filename to ".yourfolder".

shell("mv yourfolder .yourfolder")


Or even easier, just use the" rename "command.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply