Re: Preserve the resource files
Re: Preserve the resource files
- Subject: Re: Preserve the resource files
- From: Peter Waibel <email@hidden>
- Date: Mon, 18 Dec 2006 12:28:44 +0100
Am 15.12.2006 um 14:19 schrieb Jan Bultereys:
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.
I prefere ditto.
Maybe you have to add the option "--rsrc" if the script should run on
older Mac OS X versions.
The option --rsrc is default on Tiger
Peter
set destFileName to "xxx"
set destSuffix to ".zip"
set srcFile to choose file
set destFilePath_posix to POSIX path of (path to desktop) &
destFileName & destSuffix
set srcPath_posix to POSIX path of srcFile
set shellScript to ""
set shellScript to shellScript & "ditto -c -k" & " "
set shellScript to shellScript & (quoted form of srcPath_posix) & " "
set shellScript to shellScript & (quoted form of destFilePath_posix)
return do shell script shellScript
_______________________________________________
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