image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 20th, 2001, 12:52 PM
jsn jsn is offline
Registered User
 
Join Date: Jul 2001
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
jsn is on a distinguished road
How can I create a double click icon to run script shell

Hi

how can I create an icon in mac os x, that runs a script shell that has arguments.

I installed netbeans and to run it I need to go in terminal moce and type :

./runide.sh -jdkhome System/Library/Frameworks/JavaVM.framework/Home -uicom.apple.mrj.swing.MacLookAndFeel -fontsize 10

Can I do that in a simple Icon with a double click?

Thanks
jose



thanks
jsn
Reply With Quote
  #2  
Old September 21st, 2001, 04:55 AM
Registered User
 
Join Date: Apr 2001
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
aufreak is on a distinguished road
MRJAppBuilder

If you have the Developer tools, you can try using MRJAppBuilder to build a double clickable Java application, given the class files, jars, parameters, etc. Its quite easy to use.

There is some way to do this by creating a bundle directory, hmmm something to learn everyday...
Reply With Quote
  #3  
Old September 21st, 2001, 05:55 AM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
You can make a script file with a ".command" extension, and the Finder will run it:
Code:
#!/bin/sh
/Developer/forte/bin/runide.sh -jdkhome System/Library/Frameworks/JavaVM.framework/Home -uicom.apple.mrj.swing.MacLookAndFeel -fontsize 10
You probably need to make the .command file executable with a "chmod +x Forte.command" or something. Of course if you don't like the .command in the name, make a link to it and rename the link!

Cheers.

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #4  
Old September 21st, 2001, 10:15 AM
Soapvox's Avatar
Want some of my Kool-aid?
 
Join Date: Apr 2001
Location: Advertising Hell
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
Soapvox is on a distinguished road
Not sure if this is more trouble than its worth

but create a small app that interfaces with terminal in realbasic that sends that command. Why do you need it, if it is just at startup or a specific time try setting up a cron job.
__________________
G4 Powerbook (I Finally got my Titanium)
PHP/MySQL

Developing where ever I want!
I will help whomever asks, just IM or email me.
Reply With Quote
  #5  
Old September 21st, 2001, 02:33 PM
Red Phoenix's Avatar
Registered User
 
Join Date: Mar 2001
Location: Columbus, OH
Posts: 605
Thanks: 0
Thanked 0 Times in 0 Posts
Red Phoenix is on a distinguished road
Don't forget AppleScript, either. You can just use the OSX PowerAddOns Lite.osax from Version Tracker and write an AppleScript that does what you want it to.
__________________
CD MHz B&W GIII Rev I; DLXXVI MB RAM; MacOS X.I.IV, IX.II.II; Give me liberty, or at least a large order of fries.
Reply With Quote
  #6  
Old September 21st, 2001, 09:38 PM
jsn jsn is offline
Registered User
 
Join Date: Jul 2001
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
jsn is on a distinguished road
I tried the .command changing it to +x to run it but it does not work. did you try it?

using the program MRJApplication I would litke to have an explanation about how to run frte or netbeans from an icon. give me an example please

thanks
jose
Reply With Quote
  #7  
Old September 27th, 2001, 11:57 AM
Registered User
 
Join Date: Sep 2001
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
tobie is on a distinguished road
Lightbulb Have you tried the script menu

this is a new feature of 10.1:

http://www.apple.com/applescript/macosx/script_menu/

you can run applescript/perl and shell routines from it.

I don't fully understand how to create shell scripts, if this works for you, will you share it?

cheers
Tobie
Reply With Quote
  #8  
Old October 4th, 2001, 12:45 AM
Registered User
 
Join Date: Sep 2000
Location: Madison, Wisconsin
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
yuriwho is on a distinguished road
You need dropscript

http://www.mit.edu/people/wsanchez/software/

be careful with it!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with a shell script sandpilot Unix & X11 3 January 8th, 2003 06:02 PM
[HOWTO] - Use niutil gatorparrots HOWTO & FAQs 6 December 10th, 2002 03:24 PM
HOW TO STOP SPAM -- join the fight! GadgetLover Apple News, Rumors & Discussion 11 April 11th, 2002 02:52 PM
AppleScript front end to a shell script? meancode Mac OS X System & Mac Software 0 March 17th, 2002 08:25 PM
Invoking a shell script graphically? TommyWillB Software Programming & Web Scripting 15 April 16th, 2001 07:09 AM


All times are GMT -5. The time now is 06:36 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.