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 » 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 :D

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display Home folder space in Menu Bar

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

Re: Display Home folder space in Menu Bar

Post by FourthWorld » Mon Nov 05, 2012 8:07 pm

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: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display Home folder space in Menu Bar

Post by Klaus » Mon Nov 05, 2012 9:31 pm

Richard,

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


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Display Home folder space in Menu Bar

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

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display Home folder space in Menu Bar

Post by Klaus » Tue Nov 06, 2012 10:29 am

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 » 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
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Display Home folder space in Menu Bar

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

Post Reply

Return to “Mac OS”