Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Mac › Looking for Apple Scripters!
New Posts  All Forums:Forum Nav:

Looking for Apple Scripters!

post #1 of 14
Thread Starter 
I'm looking for some people who have Macs and would like to contribute to my GUI interface F@H installer. If you'd like to help please post in
http://www.overclock.net/overclock-n...ler-linux.html
Thanks in advance.
GodofGrunts
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #2 of 14
Like I said, if I knew two things:

1. How to download via terminal
2. How to unzip a .tgz

I'd be able to do it.

Alternatively, if I knew how to use Apple script to automate the entire process through GUI programs... I'd be able to do it.
post #3 of 14
Thread Starter 
I know that's what you said, but I don't know how to either so I'm trying to find somebody else on OCN who can. If not I guess I'm going to have to do some research...
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #4 of 14
Quote:
Originally Posted by The Hundred Gunner View Post
Like I said, if I knew two things:

1. How to download via terminal
2. How to unzip a .tgz

I'd be able to do it.

Alternatively, if I knew how to use Apple script to automate the entire process through GUI programs... I'd be able to do it.
Isn't .tgz synonymous with .tar.gz? If so OSX includes the tar utility, so 'tar -xzf foo.tgz'
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #5 of 14
Gotcha. Now if I only knew how to download via console, I could make this script.

Ok, here's the text. Just copy/paste this into a .sh file:

Code:
#! /bin/bash
[insert code here to download file to ~/Desktop]
mkdir /Applications/FAH
mv ~/Desktop/FAH6.02beta1-OSX-Intel-Console.tgz /Applications/FAH/FAH.tgz
cd /Applications/FAH/
tar -xzf /Applications/FAH/FAH.tgz
rm /Applications/FAH/FAH.tgz
echo Installed!

Edited by The Hundred Gunner - 6/7/08 at 5:22pm
post #6 of 14
Code:
ftp http://www.whatever.com/foobar.abc ~/something/foobar.abc
**EDIT**
I think for osx you need to download a .dmg file.
Edited by rabidgnome229 - 6/7/08 at 5:26pm
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #7 of 14
According to Bal3Wolf you can download in OS X like so:

curl -O url http://myurl/file
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #8 of 14
Yay! It works! Here, put this code into a .sh file:

Code:
#! /bin/bash
cd ~/Desktop
ftp http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02beta1-OSX-Intel-Console.tgz
mkdir /Applications/FAH
mv ~/Desktop/FAH6.02beta1-OSX-Intel-Console.tgz /Applications/FAH/FAH.tgz
cd /Applications/FAH/
tar -xzf /Applications/FAH/FAH.tgz
rm /Applications/FAH/FAH.tgz
echo Installed!
This does the following:

1. Downloads the .tgz file to the desktop
2. Makes a folder in /Applications called /Applications/FAH (programs are usually stored in /Applications in OSX)
3. Unzips the .tgz file into this new folder
4. Deletes the .tgz file

Some things to note:

1. The FAH appears to be SMP-only. Whenever it is run, it must use the -smp flag.
2. You probably need to make a shortcut or alias or link or something that will allow you to click and run fah6 with the -smp flag.
3. So far as I can tell, the program must still be opened with the Terminal; I haven't made a shortcut or anything to test it yet.

Is there anything else you'd like?
Edited by The Hundred Gunner - 6/7/08 at 8:39pm
post #9 of 14
Thread Starter 
Wow thanks guys!
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #10 of 14
Quote:
Originally Posted by The Hundred Gunner View Post
Yay! It works! Here, put this code into a .sh file:

Code:
#! /bin/bash
cd ~/Desktop
ftp http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02beta1-OSX-Intel-Console.tgz
mkdir /Applications/FAH
mv ~/Desktop/FAH6.02beta1-OSX-Intel-Console.tgz /Applications/FAH/FAH.tgz
cd /Applications/FAH/
tar -xzf /Applications/FAH/FAH.tgz
rm /Applications/FAH/FAH.tgz
echo Installed!
This does the following:

1. Downloads the .tgz file to the desktop
2. Makes a folder in /Applications called /Applications/FAH (programs are usually stored in /Applications in OSX)
3. Unzips the .tgz file into this new folder
4. Deletes the .tgz file

Some things to note:

1. The FAH appears to be SMP-only. Whenever it is run, it must use the -smp flag.
2. You probably need to make a shortcut or alias or link or something that will allow you to click and run fah6 with the -smp flag.
3. So far as I can tell, the program must still be opened with the Terminal; I haven't made a shortcut or anything to test it yet.

Is there anything else you'd like?
Why not have the script make a shortcut if the user wants one? I'm not too sure how since I don't use icons
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Mac
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Mac › Looking for Apple Scripters!