• 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
Saving BBEdit Text Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving BBEdit Text Files


  • Subject: Saving BBEdit Text Files
  • From: Mark Kot <email@hidden>
  • Date: Thu, 27 Jan 2005 15:35:18 -0700

I have a folder named "Databases" on my desktop containing 400+ text files saved from a pc.

My current procedure is to:

"Open" them in BBEdit one at a time > select "Save As" > choose "Options" > select Macintosh for "Line Breaks" > "Save" > "Replace".

I'd like to use AppleScript to automate this process. I got the following script by using the "Record" option, but it obviously is incomplete for all the files in the folder.


tell application "BBEdit 6.5" activate open {file "KOT OS X:Users:mkot:Desktop: Databases:ACU-CL-00.txt"} with LF translation save text window 1 to file "KOT OS X:Users:mkot:Desktop: Databases:ACU-CL-00.txt" close text window 1 end tell

Can someone put me on the right track?

Thanks,

Mark



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Saving BBEdit Text Files
      • From: Rob Stott <email@hidden>
    • Re: Saving BBEdit Text Files
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: syntax problem for reading an xml file in a bundle
  • Next by Date: Re: Move Document Window to Front Quark6.5
  • Previous by thread: Re: syntax problem for reading an xml file in a bundle
  • Next by thread: Re: Saving BBEdit Text Files
  • Index(es):
    • Date
    • Thread