Preserve the resource files
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