• 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: Unpack and pack .gz files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • accented chars to XML format
      • From: yvan-koenig <email@hidden>
References: 
 >Re: Unpack and pack .gz files. (From: jj <email@hidden>)
 >Re: Unpack and pack .gz files. (From: yvan-koenig <email@hidden>)

  • Prev by Date: Re: Unpack and pack .gz files.
  • Next by Date: Re: Looking for a script
  • Previous by thread: Re: Unpack and pack .gz files.
  • Next by thread: accented chars to XML format
  • Index(es):
    • Date
    • Thread