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

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
References: 
 >Preserve the resource files (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Broken Connections to Apple Server
  • Next by Date: Scripting shadows in CS2 text layer
  • Previous by thread: Re: Preserve the resource files
  • Next by thread: Picturebox to graphic box
  • Index(es):
    • Date
    • Thread