• 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: Copy file names in a folder to text edit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy file names in a folder to text edit?


  • Subject: Re: Copy file names in a folder to text edit?
  • From: Tom Robinson <email@hidden>
  • Date: Wed, 08 Oct 2003 07:38:24 +1300

>I'm really new to this apple script thing, and was wondering if any of
>you had a script available for copying all file names in a folder to a
>TextEdit document.

If youbre under OS X you could use the olb do shell script:

do shell script "ls -1 ~/Desktop > ~/Desktop/filelist.txt"

Where -1 says to list the filenames in a single column,
the ~/Desktop gives the directory to listbthe Desktop folder of your home folder,
the ~/Desktop/filelist.txt is where to place the listing.

Note youbll need to escape any spaces in the path and filenames.

Cheers
_______________________________________________
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.

  • Prev by Date: Re: "mount disk" and ftp problem
  • Next by Date: connnected?!
  • Previous by thread: Re: Copy file names in a folder to text edit?
  • Next by thread: And another question... (cron and osascript)
  • Index(es):
    • Date
    • Thread