• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

Need batch program for AppleWorks Save As

I have 100 .cwk files I need to save as .rtf.
platform: OSX 10.4.11
AppleWorks 6
How do I write a batch?

I do not have any other Apple machines.  I do not have any other versions of AppleWorks.
I would like to avoid doing each one individually.

Thanks experts!  I am a professional programmer.
0
supportoranges
Asked:
supportoranges
  • 9
  • 6
1 Solution
 
strungCommented:
0
 
supportorangesAuthor Commented:
Thank you.  I got to here:
https://www.box.com/s/loavzw01w4js9uhofboh
It is looking like the script your link uses Pages.
I can't find the one using AppleWorks.
Also, I have no background in automator or running Apple Scripts.
Are these apple scripts put into some kind of batch file?  I know PC uses .bat
and runs under command window.
I wouldn't even know where to execute the script.  Sorry, I don't kknow
anything about AppleScripts at the moment.
0
 
strungCommented:
I think you need to download the scripts at this link:

https://www.box.com/s/loavzw01w4js9uhofboh/1/792761643/7376472407/1

You should get a zip file with three files inside. I suspect the one you want is called "AW saveAsOffice6.applescript".

Here are instructions on running AppleScripts (You should read this first):

http://mac.tutsplus.com/tutorials/automation/the-ultimate-beginners-guide-to-applescript-2/

Basically, you need to open AW saveAsOffice6.applescript in AppleScript Editor which is found in /Applications/Utilities.

In AppleScript Editor click on the hammer icon to compile the script, then click on RUN.
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
supportorangesAuthor Commented:
That is much appreciated.  I will try and award points by noon E.S.T.  Thank you so much!
0
 
strungCommented:
Good luck. Hope it works. I don't have AppleWorks, so I can't test it.
0
 
strungCommented:
Make sure you back up the files, or at least test the script on a small number of files first.
0
 
supportorangesAuthor Commented:
To be honest, I thought there would be some script out there which was under 15 lines.  Thank you for getting me as far as Script Editor but saveAsOffice6 appears to be a few hundred lines and not cost effective for me to debug/redevelop it.
0
 
strungCommented:
You might be able to use the script here:

https://discussions.apple.com/thread/4945980?start=0&tstart=0

by replacing "pages" with "appleworks"
0
 
supportorangesAuthor Commented:
Ok thank I'll give it a go.
0
 
supportorangesAuthor Commented:
i found the code

save document 1 in file ((aFile as text) & ".rtf") as file type text using translator "RTF"

here
answers.yahoo.com/question/index?qid=20060926042754AAHHrOn

so I feel I'm getting close.
0
 
supportorangesAuthor Commented:
ok got it to translate using

tell application "AppleWorks 6"
 open (anItem as alias)
 save front document as file type text using translator "RTF"
 close front document
end tell

i'm having a hard time renaming the file to .rtf, can you help with this?
it's not doing it on it's own.
0
 
supportorangesAuthor Commented:
i'm open to a shell script or a pipe via terminal.
0
 
supportorangesAuthor Commented:
nice, fast, brutally effective. thank you.
0
 
supportorangesAuthor Commented:
This was so helpful.  I learned a little about AppleScript and have tools for next time this comes up.  I loved the rename tool, because I don't need to be an AppleScript expert, only need to get this job done.  Thanks again!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 9
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now