• 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
Rep: copy a package with Do Shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rep: copy a package with Do Shell Script


  • Subject: Rep: copy a package with Do Shell Script
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 16 Dec 2009 19:12:28 +0100


Le 16 déc. 2009 à 18:28, Christopher Nebel a écrit :


On Dec 16, 2009, at 9:15 AM, Yvan KOENIG wrote:

I'm really annoyed.
I'm trying to copy Pages documents which are packages using do Shell Scripts.
I tried with cp and ditto but the result is not the wanted one.
I get only simple files of size zero, not the packages.
I may zip the package, copy the created archive, unzip the copied archive and delete the original one but it seems a bit boring.
Of course I may use the Finder but I try to stop using it.

Is there a command able to copy packages ?

A package is merely a directory with specially arranged contents; cp(1) should be perfectly capable of copying it.  Did you use the -R option?  (Of course, cp on a directory with no -R should have just failed, not given you a zero-length file.)


--Chris N.

PS: Pages '09 documents are zip archives; you must be using an older version? 

(1) Thanks for the responce allowing my script to behave correctly.
(2) iWorks '09 documents may be zip archives but we are free to set the preferences to save as packages.
As I received many corrupted iWork '09 flatfiles, I use the package format for all my documents.

Yvan KOENIG (VALLAURIS, France) mercredi 16 décembre 2009 18:58:09



 _______________________________________________
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

  • Prev by Date: Re: Plug-ins
  • Next by Date: Re: Cupsfilter Scaling
  • Previous by thread: Re: Trying to convert QXP Annotate script to work for InDesign
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread