Re: Is there a way to batch convert rtf files to txt using osx

2012-07-16 Thread Patricia Taylor
what are these  filles 
On 16 Jul 2012, at 05:17, Esther wrote:

 HI All,
 
 Just noticed that it might have been confusing to use the ---begin 
 script--- line to separate off the AppleScript for batch converting rtf and 
 doc files to text.  There are only five lines to the AppleScript code.  And I 
 probably should have added some comment lines to the beginning.
 
 Esther (Commented AppleScript below -- comments take up more lines than the 
 code does!)  
 
 (* Convert doc and rtf files to text using the textutil convert option
 Written for Sarah on the mac-access list. 
 Usage: Run the script and select the folder containing your file in the 
 dialog window.  The program  will create text versions of these files in that 
 folder with the same name and .txt extension.   
 July 15, 2012  Esther
 *)
 set sourceFolder to choose folder
 tell application Finder to set theFiles to files of sourceFolder whose name 
 extension is in {doc, docx, rtf} or creator type is MSWD
 repeat with oneFile in theFiles
  do shell script textutil -convert txt   quoted form of POSIX path of 
 (oneFile as text)
 end repeat
 
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
 worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/

--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/


Re: Is there a way to batch convert rtf files to txt using osx

2012-07-16 Thread Sarah Alawami
rtf files are files that had formatting such as bullets, fonts and stuff. Plain 
text is the files with out formatting such as justifying, etc. Someone can 
explain to you off list as this is not on topic.
On Jul 16, 2012, at 7:27 AM, Patricia Taylor wrote:

 what are these  filles 
 On 16 Jul 2012, at 05:17, Esther wrote:
 
 HI All,
 
 Just noticed that it might have been confusing to use the ---begin 
 script--- line to separate off the AppleScript for batch converting rtf and 
 doc files to text.  There are only five lines to the AppleScript code.  And 
 I probably should have added some comment lines to the beginning.
 
 Esther (Commented AppleScript below -- comments take up more lines than the 
 code does!)  
 
 (* Convert doc and rtf files to text using the textutil convert option
 Written for Sarah on the mac-access list. 
 Usage: Run the script and select the folder containing your file in the 
 dialog window.  The program  will create text versions of these files in 
 that folder with the same name and .txt extension.   
 July 15, 2012  Esther
 *)
 set sourceFolder to choose folder
 tell application Finder to set theFiles to files of sourceFolder whose 
 name extension is in {doc, docx, rtf} or creator type is MSWD
 repeat with oneFile in theFiles
 do shell script textutil -convert txt   quoted form of POSIX path of 
 (oneFile as text)
 end repeat
 
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus 
 and worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/
 
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
 worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/

--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/


Re: Is there a way to batch convert rtf files to txt using osx

2012-07-15 Thread Jonathan Cohn
You have a few options.

The first is to see if there is a save a copy function in the automation work 
flows.
Even if not, one should be able to write an AppleScript to duplicate a Pages 
document.

Next is the question of batching.
Is this a one time event? Do you want a contextual menu? Or perhaps a folder 
action that occurs every time a new file is added to your recipes folder and 
it is type rtf.

Also, are you going to attempt to process the recipe  for example, look for 
ingredient lists and reformat them to one ingredient per a line.

You might want to look at one of the recipe management software packages 
instead.  My wife and children love Yummy Soup, though I have only tested it to 
seee if I can read a recipe and never made extensive use.

Best wsies,

Jonathan 

Sent from my iPhone

On Jul 15, 2012, at 10:08 PM, Sarah Alawami marri...@gmail.com wrote:

 I have no idea if I sent this  so am sending this. It's a question I have.
 
 Hello to all. I'm grabbing a boatload of recipes and all of them are in rtf 
 file or doc. is there a way to batch convert these to txt using osx? I don't 
 need the pictures I just need the directions. lol!
 
 Take care all.
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
 worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/
--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/


Re: Is there a way to batch convert rtf files to txt using osx

2012-07-15 Thread Sarah Alawami
Nah I like text files that way I can read them any ware, phone via dropbox, pc, 
mac, someone else's computer. lol! I hope this will be a 1 time thing but 
trying to do this in text edit would be a drag lol!
On Jul 15, 2012, at 7:48 PM, Jonathan Cohn wrote:

 You have a few options.
 
 The first is to see if there is a save a copy function in the automation work 
 flows.
 Even if not, one should be able to write an AppleScript to duplicate a 
 Pages document.
 
 Next is the question of batching.
 Is this a one time event? Do you want a contextual menu? Or perhaps a folder 
 action that occurs every time a new file is added to your recipes folder and 
 it is type rtf.
 
 Also, are you going to attempt to process the recipe  for example, look for 
 ingredient lists and reformat them to one ingredient per a line.
 
 You might want to look at one of the recipe management software packages 
 instead.  My wife and children love Yummy Soup, though I have only tested it 
 to seee if I can read a recipe and never made extensive use.
 
 Best wsies,
 
 Jonathan 
 
 Sent from my iPhone
 
 On Jul 15, 2012, at 10:08 PM, Sarah Alawami marri...@gmail.com wrote:
 
 I have no idea if I sent this  so am sending this. It's a question I have.
 
 Hello to all. I'm grabbing a boatload of recipes and all of them are in rtf 
 file or doc. is there a way to batch convert these to txt using osx? I don't 
 need the pictures I just need the directions. lol!
 
 Take care all.
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus 
 and worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/
 --- Mac Access At Mac Access Dot Net ---
 
 To reply to this post, please address your message to 
 mac-access@mac-access.net
 
 You can find an archive of all messages postedto the Mac-Access forum at 
 either the list's own dedicated web archive:
 http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
 or at the public Mail Archive:
 http://www.mail-archive.com/mac-access@mac-access.net/.
 Subscribe to the list's RSS feed from:
 http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml
 
 The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
 worm-free!
 
 Please remember to update your membership options periodically by visiting 
 the list website at:
 http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/

--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/


Re: Is there a way to batch convert rtf files to txt using osx

2012-07-15 Thread Esther
Hi Sarah,

You wrote:
 Hello to all. I'm grabbing a boatload of recipes and all of them are in rtf 
 file or doc. is there a way to batch convert these to txt using osx? I 
 don't need the pictures I just need the directions. lol!

Yes, you can use as AppleScript to batch convert these .rtf and .doc files to 
.txt using the convert function of  textutil, which is one of the utility 
programs on your Mac.  I just tested this script, which will take any files 
with .rtf, .doc, or .docx extensions in a specified folder and create a text 
version of the same file with the same name and a .txt extension.

I'll paste it in below, but it's probably easier to send you the AppleScript 
file as an attached file off list.  Jonathan and anyone else can check this out 
by opening the AppleScript editor, pasting in the appended lines, and then 
pressing Command-R to run the script.  You'll be prompted to select a folder 
that holds the contents you want converted.  (I prefer to check things out 
non-destructively, so I created a test folder on my Desktop and copied in a set 
of .rtf and .doc files.)

HTH.  Will also send this separately, but the AppleScript is pasted in below my 
sig.  And by the way, Jonathan, I happen to like Paprika Recipe Manager on iOS 
devices. It will handle any of the formats from MacGourmet, Yummy Soup, or a 
ton of other standard sources you can grab from the web, including several 
international recipe web sites.  Also works well if you want to input your own 
recipes -- the input keyboard for that mode has an extra row of keys for 
quantities, and an easy way to switch between English and metric systems.  Also 
features integrated shopping lists and cloud synching, scaling of ingredients, 
etc. The basic app was pretty accessible to start with, but the developers put 
in a lot of updates for VoiceOver users in the latest version update, and are 
now working over their Mac desktop app for similar improvements.  You can take 
a look at the user guides for their iPhone or iPad apps at their web sites, if 
you're interested in the features:
http://www.paprikaapp.com/help/iphone/

Cheers,

Esther
---begin script---
set sourceFolder to choose folder
tell application Finder to set theFiles to files of sourceFolder whose name 
extension is in {doc, docx, rtf} or creator type is MSWD
repeat with oneFile in theFiles
   do shell script textutil -convert txt   quoted form of POSIX path of 
(oneFile as text)
end repeat

 On Jul 15, 2012, at 7:48 PM, Jonathan Cohn wrote:
 
 You have a few options.
 
 The first is to see if there is a save a copy function in the automation 
 work flows.
 Even if not, one should be able to write an AppleScript to duplicate a 
 Pages document.
 

--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/


Re: Is there a way to batch convert rtf files to txt using osx

2012-07-15 Thread Esther
HI All,

Just noticed that it might have been confusing to use the ---begin script--- 
line to separate off the AppleScript for batch converting rtf and doc files to 
text.  There are only five lines to the AppleScript code.  And I probably 
should have added some comment lines to the beginning.

Esther (Commented AppleScript below -- comments take up more lines than the 
code does!)  

(* Convert doc and rtf files to text using the textutil convert option
Written for Sarah on the mac-access list. 
Usage: Run the script and select the folder containing your file in the dialog 
window.  The program  will create text versions of these files in that folder 
with the same name and .txt extension.   
July 15, 2012  Esther
*)
set sourceFolder to choose folder
tell application Finder to set theFiles to files of sourceFolder whose name 
extension is in {doc, docx, rtf} or creator type is MSWD
repeat with oneFile in theFiles
  do shell script textutil -convert txt   quoted form of POSIX path of 
(oneFile as text)
end repeat

--- Mac Access At Mac Access Dot Net ---

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages postedto the Mac-Access forum at 
either the list's own dedicated web archive:
http://mail.tft-bbs.co.uk/pipermail/mac-access/index.html
or at the public Mail Archive:
http://www.mail-archive.com/mac-access@mac-access.net/.
Subscribe to the list's RSS feed from:
http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml

The Mac-Access mailing list is guaranteed malware, spyware, Trojan, virus and 
worm-free!

Please remember to update your membership options periodically by visiting the 
list website at:
http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/