Re: List of files in a folder
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.