Help - Search - Members - Calendar
Full Version: Shell scripting help...
InsanelyMac Forum > Apple World > Mac Programming and Development > AppleScript and Automator
ifrit05
Im trying to improve my script where it feches the intro movie and song when you first start your mac. This is what i have down:

CODE
do shell script cp -r /System/Library/CoreServices/Setup_Assistant.app/Contents/Resources/TransitionSection.bundle/Contents/Resources/intro-sound.mp3 Desktop


it keeps giving me errors....

any help?
hoyanf
QUOTE (ifrit05 @ Apr 9 2009, 04:35 AM) *
Im trying to improve my script where it feches the intro movie and song when you first start your mac. This is what i have down:

CODE
do shell script cp -r /System/Library/CoreServices/Setup_Assistant.app/Contents/Resources/TransitionSection.bundle/Contents/Resources/intro-sound.mp3 Desktop


it keeps giving me errors....

any help?


Guess you'd have to do like this

CODE
do shell script "cp /System/Library/CoreServices/Setup_Assistant.app/Contents/Resources/TransitionSection.bundle/Contents/Resources/intro-sound.mp3 Desktop" with Administrators privilege


You only need to use "-r" when the item you'd want to copy in recursive (e.g. directory with subfolders item's)
ifrit05
Thanks, but now it says this...

cp: /System/Library/CoreServices/Setup_Assistant.app/Contents/Resources/TransitionSection.bundle/Contents/Resources/intro-sound.mp3: No such file or directory

?

I think i might give up.... lol.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.