Reply LinkBack Thread Tools Search this Thread
Old 11-03-2008, 09:40   #1 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Call shell script from javascript?

Anybody know if this can be done? Both the shell and the javascript would be local... I know this would be a major major security violation if not.

The reason I ask... I am developing a mac widget that needs to get some of its data from a shell. I have not had much luck searching this.

Thanks
  Reply With Quote
Old 11-03-2008, 12:36   #2 (permalink)
hobolooter
Registered User
 
hobolooter's Avatar
 
Join Date: Feb 2004
Location: USA
Posts: 71
Send a message via AIM to hobolooter
You use some mac development model to make system calls, not javascript.

Hope this helps.
  Reply With Quote
Old 11-03-2008, 13:24   #3 (permalink)
RaelRode
Designers are strange :)
 
RaelRode's Avatar
 
Join Date: Jan 2007
Location: Shrewsbury, UK
Posts: 1,735
Send a message via ICQ to RaelRode Send a message via AIM to RaelRode Send a message via MSN to RaelRode Send a message via Yahoo to RaelRode Send a message via Skype™ to RaelRode
You can use the exec(); command in PHP, me thinks.
__________________
If it works, it's valid.
  Reply With Quote
Old 11-03-2008, 14:35   #4 (permalink)
hobolooter
Registered User
 
hobolooter's Avatar
 
Join Date: Feb 2004
Location: USA
Posts: 71
Send a message via AIM to hobolooter
I don't think you can use PHP in Mac widgets can you? I'm pretty sure there is a solid way of interfacing with the system that doesn't require PHP.
  Reply With Quote
Old 11-03-2008, 16:13   #5 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Ya.. PHP is not an option. You have any insight on this:

Quote:
mac development model to make system calls
  Reply With Quote
Old 12-03-2008, 05:49   #6 (permalink)
MikeMackay
Everything is fine.
 
MikeMackay's Avatar
 
Join Date: Feb 2005
Location: Witham & London
Posts: 776
Send a message via MSN to MikeMackay Send a message via Skype™ to MikeMackay
AppleScript ? I've not used it before but know of it, maybe this can do the system/shell integration ?

- Mike
__________________
  Reply With Quote
Old 17-03-2008, 21:40   #7 (permalink)
erik.silkensen
Registered User
 
erik.silkensen's Avatar
 
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
  Reply With Quote
Old 17-03-2008, 22:57   #8 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
Yep.. thanks Eric. Discovered this a few days ago, well on my way with it. Was going to post an update but figured nobody gave a shit.
  Reply With Quote
Old 17-03-2008, 23:07   #9 (permalink)
erik.silkensen
Registered User
 
erik.silkensen's Avatar
 
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
Oh, now I just noticed that the topic was a few days old, oh well
  Reply With Quote
Old 25-03-2008, 16:28   #10 (permalink)
hobolooter
Registered User
 
hobolooter's Avatar
 
Join Date: Feb 2004
Location: USA
Posts: 71
Send a message via AIM to hobolooter
Actually I gave a shit :-p. That's pretty interesting, so basically it is javascript... but it isn't. Basically Dashboard interprets that javascript call and handles it accordingly.

Good info to know, thanks!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8