Unexpected Argument problem
Unexpected Argument problem
- Subject: Unexpected Argument problem
- From: Dale Parrott <email@hidden>
- Date: Thu, 3 Jan 2008 15:41:29 -0600
I am attempting to write the following script to automate changing the login screen desktop picture. I'm missing something and could use some help. Here is the script: _________________________________ display dialog "This program will change your login screen background to a picture that you select. Do you wish to continue?" tell application "Finder" set image_path to choose file with prompt "Choose an image that you want to set for the background" end tell set my_image to POSIX path of image_path as string do shell script "defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture " & my_image with administrator privileges
________________________________
Here is the error I get:
"defaults[980:923] Unexpected argument Pictures/Jaguar; leaving defaults unchanged"
Here is the path to the file I choose: "/Library/Desktop Pictures/Jaguar Aqua Blue.jpg"
I'm thinking it has something to do with the spaces, but I'm unsure as how to fix this. Any ideas?
thanks dale |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden