|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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... |
|
#3
| ||||
| ||||
| 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 Cheers. -Rob
__________________ There are only 10 kinds of people in the world: Those who understand binary, and those who don't. |
|
#4
| ||||
| ||||
| 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. |
|
#5
| ||||
| ||||
| 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. |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
![]() |
| Thread Tools | |
|
|
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 |