Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need batch program for AppleWorks Save As

Posted on 2013-06-06
15
Medium Priority
?
543 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 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Hi Folks, This article is intended to throw some light or basically give an idea towards taking the first step in the world of Systems Administration. This would in the real context of the word "Systems Administration" which would mean right from…
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 > …
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…

885 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