Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dot files



On 6/18/06 at +0100 Ruth Bygrave said this

>Is there any way I can force the Applescript commands I use for file  
>copying (backup from Smile, or just the Finder) to avoid creating  
>junk files? Also, is there a good way to avoid using the Trash with  
>flash drives, either by using scripts or by setting it up in some way?

Those .files aren't created by Applescript, they are created by the Mac's OS.

How is your flashdrive formatted? MSDOS or HFS(+), since you are using it to transfer files to a PC it should be MSDOS. This will cause difficulties when a file has a resource fork as MSDOS doesn't recognize them.

This script will turn off Spotlight and erase the Spotlight data for the chosen disk. NOTE: The use of mdutil requires root user privileges.

--> Cut <--
set dsk to (choose from list (list disks) ¬
	without empty selection allowed and multiple selections allowed)
	
if dsk is false then error number -128 -- user canceled

set dsk to quoted form of ("/volumes/" & item 1 of dsk)

set res to do shell script ("mdutil -E -i off " & dsk) ¬
	with administrator privileges
display dialog res
--> Cut <--

JBS
-- 
Always try to be modest, and be proud of it!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Dot files (From: Ruth Bygrave <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.