Re: Unpack and pack .gz files.
Re: Unpack and pack .gz files.
- Subject: Re: Unpack and pack .gz files.
- From: yvan-koenig <email@hidden>
- Date: Thu, 27 Jan 2005 10:56:35 +0100
Hello
Assembled this give:
property leChemin : ""
on run
if leChemin is "" then
set cf to choose file (* grab the Pages document *)
end if
set leChemin to (cf as text) & "index.xml"
set leCheminGZ to leChemin & ".gz"
tell application "Finder"
if exists file leCheminGZ then
do shell script "gunzip " & quoted form of POSIX path of leCheminGZ
else if exists file leChemin then
do shell script "gzip " & quoted form of POSIX path of leChemin
end if
end tell
end run
_______________________________________________
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