• 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
linebreak in a shell script; was Re: What's wrong with this call to zip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linebreak in a shell script; was Re: What's wrong with this call to zip?


  • Subject: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • From: tom wible <email@hidden>
  • Date: Wed, 27 Feb 2008 19:05:11 -0500

do shell script "cd ~/Desktop" & return &" zip -r test.rtfd.zip test.rtfd"
> which failed

return is not newline

do shell script "cd ~/Desktop
	zip -r test.rtfd.zip test.rtfd"
and it worked

i understand leopard has a newline already defined...i use this on tiger:

	property newline : "
"

_______________________________________________
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
  • Follow-Ups:
    • Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
      • From: Dmitry Markman <email@hidden>
    • Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: osascript: application isn't running. huh?
  • Next by Date: Re: osascript: application isn't running. huh?
  • Previous by thread: More iPhoto Scripting Oddness
  • Next by thread: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread