Re: Preserve the resource files
Re: Preserve the resource files
- Subject: Re: Preserve the resource files
- From: Cameron Hayne <email@hidden>
- Date: Fri, 15 Dec 2006 17:23:41 -0500
On 15-Dec-06, at 8:19 AM, Jan Bultereys wrote:
What do I need to add to preserve the resource file in this script
Don't use the command-line version of 'zip' (as you are doing in a
'do shell script') if you want to preserve resource forks. Instead
script Finder to use its "Create Archive" feature (I'm assuming this
is possible) or use some other command-line program that does
preserve resource forks (e.g. in Tiger: tar or gzip).
Technical note: to find out if a command-line program is one of those
that has been enhanced (in Tiger) to preserve resource forks, look
for 'copyfile' in the output from 'nm' acting on the executable. For
example:
nm /usr/bin/gzip | grep copyfile
shows that 'copyfile' is used in 'gzip'
but a similar command applied to /usr/bin/zip shows no use of
'copyfile'.
Or of course you could just do an experiment to see if it preserves
the resource fork.
--
Cameron Hayne
email@hidden
_______________________________________________
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