Re: problem with do shell script
Re: problem with do shell script
- Subject: Re: problem with do shell script
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 28 Jun 2011 15:11:10 -0400
You don't have permission to write the file in /, which is the default working directory. Add a "cd /somewhere/you/can/write/to &&" in front of the curl.
On Tue, Jun 28, 2011 at 2:45 PM, John McClintock
<email@hidden> wrote:
Greetings Scripters,
I'm having a problem with a script I've been using for several years and hope it's a workstation issue. The script collects images from http://www.goes-arch.noaa.gov/ and assembles them into a QuickTime Movie. The script breaks on the following:
set shell_string to "curl -O http://www.goes-arch.noaa.gov/ECIR111790745.GIF "
do shell script shell_string
The error says "failed to create the file" and "failed to write body" - it's not writing the file. The result line is "curl -O http://www.goes-arch.noaa.gov/ECIR111790745.GIF " and this seems to be well-formed and works in Terminal. The image does exist on the server (they are stored for 30 days and it exists today), and actually the script should write a blank file even if the file doesn't exist on the server. It feels like a permissions issue.
I'm running Mac OS 10.6.7. It still works in 10.5.8. Does anyone have any ideas?
Thanks,
John McClintock
_______________________________________________
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
--
Mark J. Reed <
email@hidden>
_______________________________________________
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