• 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: List of files in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of files in a folder


  • Subject: Re: List of files in a folder
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 18 Jun 2004 23:22:30 -0700

At 04:50p +0100 06/18/2004, Oz Springs didst inscribe upon an electronic papyrus:

Thanks very much. This works well. Have added it to my scripts folder on the menu bar.

I am surprised that Apple doesn't supply a script for getting a list of files etc. as part of its file/folder scripts. It is one which I use fairly often.

Well, you can also select the files in Finder and just copy; that's probably why they didn't include a script to do it. But now that you know the scripting technique, you can use it elsewhere. :)

At 4:42 AM -0700 18/6/04, Walter Ian Kaye wrote:
>set oldDelims to AppleScript's text item delimiters
>set AppleScript's text item delimiters to return
>try
> set theFileParas to theFileList as string
>on error
> set theFileParas to theFileList
>end try
>set AppleScript's text item delimiters to oldDelims
>theFileParas

BTW, that line can be left out; it's only useful if you're checking stuff in Script Editor.

>set the clipboard to theFileParas


-W
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: List of files in a folder
      • From: Oz Springs <email@hidden>
References: 
 >List of files in a folder (From: Oz Springs <email@hidden>)
 >Re: List of files in a folder (From: Walter Ian Kaye <email@hidden>)
 >Re: List of files in a folder (From: Oz Springs <email@hidden>)

  • Prev by Date: Re: Excel 2004 Script Not Working
  • Next by Date: Delay after keystrokes
  • Previous by thread: Re: List of files in a folder
  • Next by thread: Re: List of files in a folder
  • Index(es):
    • Date
    • Thread