Just thought I'd share something that I had to learn about the hard way.
If you ever need to pass a file that you have zipped on your Mac to
someone with a Vista system, this may become important to you. When
OSX zips a file, it includes certain resources which are useful on
the Mac side, but which confuse the heck out of Vista .... which
seems easy enough to confuse without any help.
Here's a solution. You can use a command line approach to create the
zip without these resources, but even easier, it is, to create an
Applescript application that does this task for you.
Procedure: Open the Applescript editor. Insert the following text.
Compile. Save as an application. That's it. You can use your new
application via the drag an drop approach. This does not combine
multiple files into a single zip. To do that, put them in a folder
and zip the folder. Here's the text:
on open (theItems) --receive items dropped onto droplet as a list
--in case you're trying to compress something really big on your
Rev A iMac:
with timeout of 1000000 seconds
try
tell application "Finder"
--repeat the command to compress each item as an individual
archive
repeat with oneItem in theItems
--used to extract the name and location of the file
set itemProp to properties of oneItem
--where the file is
set itemPath to quoted form of POSIX path of oneItem
--where the compressed file should end up
set destFold to quoted form of POSIX path of ¬
(container of itemProp as alias)
--what the name of the file is
set itemName to name of oneItem
--do it, do it now
do shell script ¬
("ditto -c -k -X --norsrc --keepParent " & itemPath & ¬
" " & destFold & "'" & itemName & "'" & ".zip")
end repeat
end tell
on error errmsg
--should anything go wrong let the user know
display dialog errmsg
end try
end timeout
end open
That's all.
Bill Holt
"Beware of the man who works hard to learn something, learns it, and
finds himself no wiser than before ... He is full of murderous
resentment of people who are ignorant without having come by their
ignorance the hard way." Kurt Vonnegut
_______________________________________________
The next Louisville Computer Society meeting will
be April 22 at MacAuthority, 128 Breckinridge Lane.
Posting address: [email protected]
Information: http://www.math.louisville.edu/mailman/listinfo/macgroup