• 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
Preserve the resource files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preserve the resource files


  • Subject: Preserve the resource files
  • From: Jan Bultereys <email@hidden>
  • Date: Fri, 15 Dec 2006 14:19:22 +0100
  • Thread-topic: Preserve the resource files

Title: Preserve the resource files
Hi all,

What do I need to add to preserve the resource file in this script?
It is working great but I lose the icon from eg. Quarkfiles.

tell application "Finder"
    set source_folder to (choose folder) as alias
   set file_list to every item of folder source_folder
   set file_path to POSIX path of source_folder
   repeat with temp_file in file_list
       set temp_name to name of temp_file
       set stuff_name to quoted form of temp_name
       set stuff_name_zip to stuff_name & ".zip"
        set stuffcom to "cd " & file_path & " ; zip " & stuff_name_zip & " " & stuff_name
       set removefiles to "cd " & file_path & " ; rm " & stuff_name
       do shell script stuffcom
       do shell script removefiles
   end repeat
end
tell

Many thanks,jan
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Preserve the resource files
      • From: Peter Waibel <email@hidden>
    • Re: Preserve the resource files
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: CsvToListOfText
  • Next by Date: Picturebox to graphic box
  • Previous by thread: Re: How can this scale?
  • Next by thread: Re: Preserve the resource files
  • Index(es):
    • Date
    • Thread