Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need batch program for AppleWorks Save As

Posted on 2013-06-06
15
Medium Priority
?
539 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 
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
 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
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…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

688 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