Deploying to Mac OS? Ask Mac OS specific questions here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
derr1ck
- Livecode Opensource Backer

- Posts: 25
- Joined: Wed Mar 30, 2011 11:14 pm
Post
by derr1ck » Mon Nov 05, 2012 11:39 am
Hi,
I would like to create a small app that shows the logged in user how much space is left in their User directory visually within the menu bar. Is there a way to do this within livecode without any 3rd party apps/software?
Thanks in advance for any help forthcoming

-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Mon Nov 05, 2012 7:58 pm
Hi derr1ck,
this is not possible with the build in functionality of Livecode.
Best
Klaus
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Mon Nov 05, 2012 8:07 pm
The diskSpace function may help.
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Mon Nov 05, 2012 9:31 pm
Richard,
checking the empty space is definitively not the problem here!
Best
Klaus
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Mon Nov 05, 2012 9:47 pm
I may not have correctly interpreted "shows the logged in user how much space is left in their User directory" - does the system in question impose user-specific quotas?
-
Klaus
- Posts: 14177
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Tue Nov 06, 2012 10:29 am
Hi Richard,
I was actially referring to this part: "... within the menu bar"
Best
Klaus
-
derr1ck
- Livecode Opensource Backer

- Posts: 25
- Joined: Wed Mar 30, 2011 11:14 pm
Post
by derr1ck » Tue Nov 06, 2012 11:53 am
Yes Richard, there is a quota on user accounts, but its only enforced by a php script that runs nightly & checks the users account and if over quota moves the account from the Users folder. I want a visual display of the users account space while the user is logged in or something that pops up before the user logs out displaying how much space the account has.
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Tue Nov 06, 2012 7:32 pm
Since this is on a server, the good news is that you could probably write a PHP script to return that info. But the bad news is what Klaus drew my attention to: you'll have to find another place to display that than the menubar, unless you want to write an external to hook into that.