image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old April 4th, 2004, 08:44 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
Question simple "run command" from finder

Although I hate to use an analogy to windows... the start menu key + R presents a very nice dialogue through which you can run any DOS command. (perhaps the only convenient feature i've found yet.) Yes you can run a command from within terminal, but it's not very convenient to be in that application. (Also it builds up windows like no other.)

In short, is there any built in way to run a shell command from any application, and possibly have it not trigger a new window to open in terminal. (Or at least close it when the command finishes.) I suppose you could maybe have an apple script with a dialogue linked to a key command, but I'm not really proficient with apple script...

thanks,
graham
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply With Quote
  #2  
Old April 4th, 2004, 09:39 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
Let's get more specific: what exactly do you want to do? But that I mean, why do you want to run commands from any application, what kinds of commands do you want to run? They must be non-interactive commands if you don't want any windows open, right ?

The Terminal is the place to run commands, and it only opens one window.

As for AppleScript, running any shell script is simple:
Code:
try
   do shell script "ps -auwx"
end try
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #3  
Old April 5th, 2004, 03:09 AM
Zammy-Sam's Avatar
Desertchild
 
Join Date: Feb 2002
Location: Germany
Posts: 6,658
Thanks: 0
Thanked 0 Times in 0 Posts
Zammy-Sam is on a distinguished road
Hey Graham

You have to get launchbar!
__________________
iBook 600; 12''; 640mb; 8mb Rage; DVD-CDRW-Combo, 20GB
P4 1.6; 2x80GB Raid1 (file-server)
tiBook 1Ghz, Superdrive, 768MB, 64mb 9000, 60GB
Reply With Quote
  #4  
Old April 5th, 2004, 04:14 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
In the terminal app, there's (cmd)(shift)(n) to run a command without opening a whole shell. You can also right click (or control click) on terminal's dock icon and that option is available. Of course, terminal.app already needs to be running...
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #5  
Old April 5th, 2004, 01:50 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
Smile excellent

thanks guys, all three methods will accomplish basically anything I would want to do... what I would really want to do is have a keystroke call terminal's run command dialogue, but it doesn't seem to be in the apple script dictionary. Maybe I'll see if I can record it anyways later... but for now, off to class.

thanks again,
graham
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply With Quote
  #6  
Old April 5th, 2004, 02:23 PM
Browni's Avatar
Registered User
 
Join Date: Jan 2002
Location: Wantage, Oxfordshire, England
Posts: 577
Thanks: 0
Thanked 0 Times in 0 Posts
Browni is on a distinguished road
if your on 10.3 then you will be able to assign a system wide key stroke in the keyboard pref plane.
__________________
Current Setup: G4 450 Mhz Mac OS 10.3.8 |
Adam Brown Designs
Reply With Quote
  #7  
Old April 5th, 2004, 05:22 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
Talking thank you all

it turns out that launch bar does basically everything I could possibly need (and quite a bit I'd never actually use.) It's really a great little piece of software.

Thanks everyone,
graham
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:09 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.