Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 30, 2006, 10:25 PM   #1
Benjamindaines
macrumors 68030
 
Benjamindaines's Avatar
 
Join Date: Mar 2005
Location: A religiously oppressed state
Anyone wanna write me a quick AppleScript?

What I need it to do:
  • Start Terminal (hidden if you can)
  • run cp ~/Documents/Stuff/.VolumeIcon.icns /volumes/"Back Up"/
  • Have it relaunch Finder
  • Have it quit Terminal

Much Thanks!
__________________

Benjamindaines is offline   0 Reply With Quote
Old Dec 30, 2006, 10:47 PM   #2
HexMonkey
Administrator
 
HexMonkey's Avatar
 
Join Date: Feb 2004
Location: New Zealand
You can bypass Terminal altogether:

Code:
do shell script "cp ~/Documents/Stuff/.VolumeIcon.icns /volumes/\"Back Up\"/"
do shell script "killall Finder"
HexMonkey is offline   0 Reply With Quote
Old Dec 30, 2006, 10:57 PM   #3
Benjamindaines
Thread Starter
macrumors 68030
 
Benjamindaines's Avatar
 
Join Date: Mar 2005
Location: A religiously oppressed state
Quote:
Originally Posted by HexMonkey View Post
You can bypass Terminal altogether:

Code:
do shell script "cp ~/Documents/Stuff/.VolumeIcon.icns /volumes/\"Back Up\"/"
do shell script "killall Finder"
Awesome thanks! I hate coding
__________________

Benjamindaines is offline   0 Reply With Quote
Old Dec 31, 2006, 02:30 AM   #4
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Heh. You don't know what you're missing
Soulstorm is offline   0 Reply With Quote
Old Dec 31, 2006, 09:02 AM   #5
crazzyeddie
macrumors 68030
 
crazzyeddie's Avatar
 
Join Date: Dec 2002
Location: Florida, USA
AppleScript is not even close to coding. Its really not bad and uses mostly english. Its hard to get used to it at all.
__________________
Macbook Air 2010
Core 2 Duo 2.13Ghz
4GB DDR3 RAM
iPhone 5 Black
crazzyeddie is offline   0 Reply With Quote
Old Dec 31, 2006, 10:48 AM   #6
Benjamindaines
Thread Starter
macrumors 68030
 
Benjamindaines's Avatar
 
Join Date: Mar 2005
Location: A religiously oppressed state
Quote:
Originally Posted by crazzyeddie View Post
AppleScript is not even close to coding. Its really not bad and uses mostly english. Its hard to get used to it at all.
Yes I know AS is easy compared to cocoa (I've looked over source code for various apps) but it's the fact that I don't know it and am too lazy to learn it for the few times I need it that makes it difficult for me
__________________

Benjamindaines is offline   0 Reply With Quote
Old Dec 31, 2006, 01:16 PM   #7
ATG
macrumors regular
 
Join Date: Aug 2005
Quote:
AppleScript is not even close to coding. Its really not bad and uses mostly english. Its hard to get used to it at all.
It's actually not so bad once you get used to it. I'm in the process of adding scripting to my Cocoa app and obviously I had to learn AppleScript first.

But it's easy for me as a prior programmer. I do remember trying to learn it many years ago before I had even heard of C and it's lack of structure was really infuriating.

It's great for making small apps though if you don't want to go through the trouble of creating a whole Cocoa app.

[/OFFTOPIC]
ATG is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Anyone wanna help me out? anjinha Community Discussion 20 Jun 11, 2009 12:00 PM
Buying a 15" PB, anyone wanna stop me? mcarnes Buying Tips, Advice and Discussion (archive) 8 Jun 18, 2005 11:24 PM
anyone wanna lend me $2600? generationxwing Wasteland 8 Jun 15, 2005 08:03 PM
wanna help me make an applescript? Beigean General Mac Discussion 0 Jul 4, 2002 02:35 AM


All times are GMT -5. The time now is 09:54 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC