• 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: What's wrong with this call to zip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's wrong with this call to zip?


  • Subject: Re: What's wrong with this call to zip?
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 27 Feb 2008 15:21:27 +0100


Le 27 févr. 2008 à 14:14, Axel Luttgens a écrit :

cd ~/Desktop
	zip -r test.rtfd.zip test.rtfd


Thanks

I got a surprising behaviour.

As I don't like to put an implicit linebreak in a shell script, I first tried to use:

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

which failed.

So, I made a new test using:

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

and it worked

But I really don't understand why it does in this case and why it doesn't when the operands are full pathnames.

As I am unaware of terminal details, I am unable to edit

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

to make it work with my own folder, which may be

set monDossier to (path to documents folder) as unicode text & "dossier1:dossier2:"
or
set monDossier to (choose folder) as unicode text



If I am boring, don't be afraid, you may tell me that I am ;-)

Yvan KOENIG _______________________________________________
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: What's wrong with this call to zip?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)
 >Re: What's wrong with this call to zip? (From: Philip Aker <email@hidden>)
 >Re: What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)
 >Re: What's wrong with this call to zip? (From: "Mark J. Reed" <email@hidden>)
 >Re: What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)
 >Re: What's wrong with this call to zip? (From: Axel Luttgens <email@hidden>)
 >Re: What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)
 >Re: What's wrong with this call to zip? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: System Events versus Finder
  • Next by Date: applescript & installer behavior
  • Previous by thread: Re: What's wrong with this call to zip?
  • Next by thread: Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread