Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Benjamindaines

macrumors 68030
Original poster
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!
 
You can bypass Terminal altogether:

Code:
do shell script "cp ~/Documents/Stuff/.VolumeIcon.icns /volumes/\"Back Up\"/"
do shell script "killall Finder"
 
AppleScript is not even close to coding. Its really not bad and uses mostly english. Its hard to get used to it at all.
 
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 😉
 
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]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.