Discuss Cant Get My App To Work - AppleScript at the Genuine Mac Support - Hackint0sh.org; Hey Guys,
Im working on a script that renames a file, then copies it to ...
-
Senior Professional
Array
Cant Get My App To Work - AppleScript
Hey Guys,
Im working on a script that renames a file, then copies it to a directory, However i get perm denied - I have added code below. Any help would be really appreciated. Cheers
// Renames File
tell application "Finder"
set theFile to (desktop as text) & "New.jpg" as alias
set name of theFile to "DefaultDesktop.jpg"
end tell
// Tries to copy to destination
do shell script "cp -r /$HOME/Desktop/DefaultDesktop.jpg /System/Library/CoreServices/"
This is what i get in Results Section
error "cp: /System/Library/CoreServices/DefaultDesktop.jpg: Permission denied" number 1
I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner
iPhone Owner 3G
-
-
Senior Professional
Array
Just an Update - Fixed
// Tries to copy to destination
do shell script "cp -r /$HOME/Desktop/DefaultDesktop.jpg /System/Library/CoreServices/" with administrator privileges
// with administrator privileges - What this does is prompt the user to add their u/name & Password
Resolved
I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner
iPhone Owner 3G
-
Similar Threads
-
By sailor0703 in forum Genuine Mac Support
Replies: 7
Last Post: 12-28-2010, 10:18 AM
-
By hackint0sh in forum Latest Headlines
Replies: 0
Last Post: 03-31-2009, 09:30 PM
-
By hackint0sh in forum Latest Headlines
Replies: 0
Last Post: 09-09-2008, 12:50 AM
-
By hackint0sh in forum Latest Headlines
Replies: 0
Last Post: 06-18-2008, 11:10 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks