Re: Dot files
Re: Dot files
- Subject: Re: Dot files
- From: "J. Stewart" <email@hidden>
- Date: Sun, 18 Jun 2006 06:38:24 -0400
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:
This email sent to email@hidden
References: | |
| >Dot files (From: Ruth Bygrave <email@hidden>) |