|
#1
| ||||
| ||||
| Can I make an AppleScript to display Uptime in dialog? Well, can I? So I can doubleclick on it and it will pop up a box with all the info that pops up when I type Uptime in the terminal. Without having to launch Terminal.
__________________ Confucious Say: Jasoco, change your gosh darn SIGNATURE! it's been like that forever! Never disobey Confucious. Jasoco.net - GeekPub Forums |
|
#2
| |||
| |||
| yes display dialog (Shell "uptime") buttons {"OK"} of course, if you want an applet that you can double-click rather than run in script menu, you'll have to save as compiled |
|
#3
| ||||
| ||||
| It won't run. It says Expected ", " but found ".
__________________ Confucious Say: Jasoco, change your gosh darn SIGNATURE! it's been like that forever! Never disobey Confucious. Jasoco.net - GeekPub Forums |
|
#4
| |||
| |||
| I believe the above script requires a scripting addition to be installed, OSX Power Additions Lite. I believe Shell is one of its commands. I don't know if there is anyway to do this with the standard Applescript (while Terminal is scriptable, its not very full featured). Try downloading and installing it, though I can't promise this will help (I don't have the software installed on this machine to check). http://www.vampiresoft.com/Products/...oweraddos.html |
|
#5
| ||||
| ||||
| I got this one to work for me. Save as an application and all you have to do is double click it. ![]() Code: tell application "Terminal"
do script with command "uptime"
delay 1
set the_results to contents of window 1
close every window
end tell
display dialog paragraph 4 of the_results buttons {"OK"}
__________________ .: Quicksilver G4 1.33GHz: OSX 10.4.1: Radeon9800Pro: 1.5GB: 80GB .: Al 15" 1.25GHz: 10.4.1: Radeon9600Mobility: 512MB: 80GB: Superdrive: AE: Bluetooth .: www.excalibur-design.com :. .: End of line... |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal ASCII/ANSI display | bluehz | Unix & X11 | 3 | May 4th, 2003 12:50 PM |
| Help! OS X won't display the standard Font dialog! | cerbero | Mac OS X System & Mac Software | 0 | March 30th, 2003 12:58 PM |
| [HOWTO] - Use niutil | gatorparrots | HOWTO & FAQs | 6 | December 10th, 2002 04:24 PM |
| how do I make an applescript to logout? | xaqintosh | Mac OS X System & Mac Software | 12 | December 6th, 2002 04:50 PM |
| How to compile stuff | fintler | Unix & X11 | 1 | August 28th, 2002 08:57 AM |