• 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: find problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find problem


  • Subject: Re: find problem
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 04 Aug 2014 21:39:47 +0200


Le 4 août 2014 à 21:18, Alex Zavatone <email@hidden> a écrit :

http://askubuntu.com/questions/266179/how-to-exclude-ignore-hidden-files-and-directories-in-a-wildcard-embedded-find

http://stackoverflow.com/questions/13525004/how-to-exclude-this-current-dot-folder-from-find-type-d

Cheers.

On Aug 4, 2014, at 3:14 PM, KOENIG Yvan wrote:


Le 4 août 2014 à 20:20, Luther Fuller <email@hidden> a écrit :

On Aug 4, 2014, at 1:07 PM, Stan Cleveland wrote:

I've not used the -d option, but it sounds promising. Something like this might be worth trying:
do shell script "find -d " & the result & " -name " & filename & " -type d"

I usually add the -s option to traverse hierarchies in alphabetical order and -d to skip directories with a different device number:
do shell script "find -dsx " & the result & " -name " & filename & " -type d"

Thanks. I tried both of these, but still got the same errors.
(Yes, -d did look promising.)

I have read the 'find' man page a couple of times this week-end and did not see anything helpful.
Perhaps there is a unix construction that will allow the errors to be ignored. (?)

Isn’t it any way to skip folders whose name starts with a dot when navigating in the hierarchy ?


Yvan KOENIG (VALLAURIS, France) lundi 4 août 2014 21:14:22


Thank you Alex

I hope that the informations available in the linked pages will be useful for Luther.

Yvan KOENIG (VALLAURIS, France) lundi 4 août 2014 21:39:42



 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

References: 
 >find problem (From: Luther Fuller <email@hidden>)
 >Re: find problem (From: Stan Cleveland <email@hidden>)
 >Re: find problem (From: Luther Fuller <email@hidden>)
 >Re: find problem (From: KOENIG Yvan <email@hidden>)
 >Re: find problem (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: find problem
  • Next by Date: Re: Applescript AeroSnap
  • Previous by thread: Re: find problem
  • Next by thread: Send Mail Headers and Contents to BBEdit
  • Index(es):
    • Date
    • Thread