• 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: Get all files in a folder ignoring invisibles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get all files in a folder ignoring invisibles?


  • Subject: Re: Get all files in a folder ignoring invisibles?
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 25 Mar 2010 14:53:11 -0500


On Mar 25, 2010, at 2:04 PM, Luther Fuller wrote:

On Mar 25, 2010, at 1:03 PM, Alex Zavatone wrote:

I can easily get a list of all files in a folder, but I'd like to be able to ignore invisibles option like you can with the choose folder command

I'm currently doing this:

tell application "Finder"
 set myString to the name of every file of myFolder
end tell 

Also is there an easy, one line way to convert this list to a return delimited string?

Yes ...

set AppleScript's text item delimiters to {return}
tell application "Finder"
set myString to (the name of every file of myFolder) as text
end tell

and the Finder always ignores invisibles.

Nope.  It doesn't in my case. I get a list full of visible and invisible files.  
 _______________________________________________
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

  • Follow-Ups:
    • Re: Get all files in a folder ignoring invisibles?
      • From: Yvan KOENIG <email@hidden>
References: 
 >Get all files in a folder ignoring invisibles? (From: Alex Zavatone <email@hidden>)
 >Re: Get all files in a folder ignoring invisibles? (From: Luther Fuller <email@hidden>)

  • Prev by Date: coerce record to string - does this work in other System languages?
  • Next by Date: Re: coerce record to string - does this work in other System languages?
  • Previous by thread: Re: Get all files in a folder ignoring invisibles?
  • Next by thread: Re: Get all files in a folder ignoring invisibles?
  • Index(es):
    • Date
    • Thread