combine txt

I have a few hundred txt.files and want to import them into one big Numbers file.

is there any way to combine the files or import them all into Number?

MacBook Pro 13″, macOS 12.6

Posted on Sep 29, 2022 6:17 PM

Reply
2 replies

Sep 29, 2022 7:22 PM in response to Rotmoi

Choose Utilities from the Finder's Go menu, open the Script Editor, select all the files, and run:


tell application "Finder"

set the_text to ""

repeat with this_file in (selection as alias list)

set the_text to the_text & return & (read this_file)

end repeat

end tell

items 2 thru -1 of the_text as string


(225815)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

combine txt

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.