Display Home folder space in Menu Bar

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
derr1ck
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 25
Joined: Wed Mar 30, 2011 11:14 pm

Display Home folder space in Menu Bar

Post by derr1ck »

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 :D
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display Home folder space in Menu Bar

Post by Klaus »

Hi derr1ck,

this is not possible with the build in functionality of Livecode.


Best

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

Re: Display Home folder space in Menu Bar

Post by FourthWorld »

The diskSpace function may help.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display Home folder space in Menu Bar

Post by Klaus »

Richard,

checking the empty space is definitively not the problem here! :D


Best

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

Re: Display Home folder space in Menu Bar

Post by FourthWorld »

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display Home folder space in Menu Bar

Post by Klaus »

Hi Richard,

I was actially referring to this part: "... within the menu bar" 8)


Best

Klaus
derr1ck
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 25
Joined: Wed Mar 30, 2011 11:14 pm

Re: Display Home folder space in Menu Bar

Post by derr1ck »

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
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Display Home folder space in Menu Bar

Post by FourthWorld »

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply