Jump to content

Shell scripting help...


ifrit05
 Share

4 posts in this topic

Recommended Posts

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:

 

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?

Link to comment
Share on other sites

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:

 

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

 

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...
 Share

×
×
  • Create New...