Re: Unpack and pack .gz files.
Re: Unpack and pack .gz files.
- Subject: Re: Unpack and pack .gz files.
- From: Andrew Oliver <email@hidden>
- Date: Thu, 27 Jan 2005 00:40:19 -0800
On 1/27/05 12:30 AM, "yvan-koenig" <email@hidden> wrote:
> Hello
>
> I'm not accustomed to shell scripts.
>
> May one of you give the info allowing a script to unpack a file like:
>
> index.xml.gz --> index.xml
>
> and of course to pack it back ? ( index.xml --> index.xml.gz
>
> You understood, it's one of the Pages's docs components.
In this case, just:
To compress:
do shell script "gzip " & quoted form of POSIX path of theFile
To decompress:
do shell script "gunzip " & quoted form of POSIX path of theFile
gzip/gunzip both automatically add/remove the .gz filename extension.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden