Solved

Need batch program for AppleWorks Save As

Posted on 2013-06-06
15
516 Views
Last Modified: 2013-06-06
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
Comment
Question by:supportoranges
  • 9
  • 6
15 Comments
 
LVL 53

Expert Comment

by:strung
ID: 39225335
0
 
LVL 1

Author Comment

by:supportoranges
ID: 39225354
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
 
LVL 53

Accepted Solution

by:
strung earned 500 total points
ID: 39225379
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
 
LVL 1

Author Comment

by:supportoranges
ID: 39225386
That is much appreciated.  I will try and award points by noon E.S.T.  Thank you so much!
0
 
LVL 53

Expert Comment

by:strung
ID: 39225417
Good luck. Hope it works. I don't have AppleWorks, so I can't test it.
0
 
LVL 53

Expert Comment

by:strung
ID: 39225420
Make sure you back up the files, or at least test the script on a small number of files first.
0
 
LVL 1

Author Comment

by:supportoranges
ID: 39225513
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 53

Expert Comment

by:strung
ID: 39225641
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
 
LVL 1

Author Comment

by:supportoranges
ID: 39225695
Ok thank I'll give it a go.
0
 
LVL 1

Author Comment

by:supportoranges
ID: 39225959
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
 
LVL 1

Author Comment

by:supportoranges
ID: 39226827
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
 
LVL 1

Author Comment

by:supportoranges
ID: 39226833
i'm open to a shell script or a pipe via terminal.
0
 
LVL 53

Expert Comment

by:strung
ID: 39226852
0
 
LVL 1

Author Comment

by:supportoranges
ID: 39226908
nice, fast, brutally effective. thank you.
0
 
LVL 1

Author Closing Comment

by:supportoranges
ID: 39226912
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now