• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem with do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with do shell script


  • Subject: Re: problem with do shell script
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 28 Jun 2011 17:53:49 -0500

On Jun 28, 2011, at 15:26, John McClintock wrote:
Your simple fix works!
______________________________________________________________________

Hey John,

Mark's method works fine, but I generally prefer to write such things like this for readability:

set shell_string to "cd '/Users/chris/Pictures/NOAA'
curl --remote-name http://www.goes-arch.noaa.gov/ECIR111790745.GIF"
do shell script shell_string

I also like to use the long option-name unless it's really inconvenient to do so - again for readability.  On the command-line I usually won't, but in scripts and handlers I usually will.

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >problem with do shell script (From: John McClintock <email@hidden>)
 >Re: problem with do shell script (From: "Mark J. Reed" <email@hidden>)
 >Re: problem with do shell script (From: John McClintock <email@hidden>)

  • Prev by Date: Re: problem with do shell script
  • Next by Date: Re: List View Options
  • Previous by thread: Re: problem with do shell script
  • Next by thread: Re: problem with do shell script
  • Index(es):
    • Date
    • Thread