• 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: Odd Finder Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd Finder Behavior


  • Subject: Re: Odd Finder Behavior
  • From: Peter Waibel <email@hidden>
  • Date: Tue, 5 Dec 2006 11:20:09 +0100


Has anyone suggestion how to savely delete files (data and resource fork) on a mounted volume without using finder scripting?

You can use rm.


I do use rm on my own files
but I'm still hesitating to use rm in scripts that are used by others.

The reason why I'm hesitating is that I do not understand what rm realy does.
The rm man page doesn't tell anything about how rm considers resource forks
and other volume informations.


I did a simple test on a mounted AFP volume:

$ ls -l test1
-rw-r--r--   1 peterw  peterw  0 Dec  5 10:37 test1
$ ls -l test1/rsrc
-rw-r--r--   1 peterw  peterw  2867 Dec  5 10:37 test1/rsrc
$ rm test1
$ ls -l test/rsrc
$ ls: test/rsrc: No such file or directory

Everthing seams to be perfect.
Even the finder window is updated immediately after using rm
and rm is faster than finder's delete command in applescript.

Is there anything the finder's delete command does better than rm?

I know that those questions about command line tools are
a bit out of topic in this forum but I think there are some reasonable worries
about the reliability and performance of finder's file commands in applescript.


Peter


_______________________________________________ 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
  • Follow-Ups:
    • Re: Odd Finder Behavior
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Odd Finder Behavior (From: Shane Stanley <email@hidden>)

  • Prev by Date: acgi dispatcher problems...
  • Next by Date: Text Box Within Text Box
  • Previous by thread: Re: Odd Finder Behavior
  • Next by thread: Re: Odd Finder Behavior
  • Index(es):
    • Date
    • Thread