Previous 1 2 3 Next 66 Replies Latest reply: May 3, 2009 6:07 AM by lbrookins
Roger Wilmut1 Level 9 (75,114 points)
I don't know whether this is news to anyone, but it seems worth posting. We know that Pages can open AW word processing documents, but not draw documents. However it turns out to be possible to make a conversion.

I took an AppleWorks draw document with a large number of text boxes, lines etc over an imported image (actually the instructions for a remote control, with the key functions and lines pointing to the keys on the imported image). If I select all and copy into Pages, I get a single non-editable image.

I opened a new AW word processing document, selected the arrow pointer in the toolbox, and dragged the cursor in the document to convert it to handling draw objects. I selected all in the draw document of the remote, and pasted into the new document. As you would expect, I got all the draw objects, fully editable.

I saved this, and then opened it in Pages. To my surprise, I got all the objects, fully editable.

So though you can't actually open draw documents in Pages, as long as you are able to run AppleWorks you can convert them to Pages for future-proofing; there are probably going to turn out to be some limitations. I tried this with a document which includes a spreadsheet frame, and that turned up as a table.

(I hope I'm not posting old news!)

24 inch iMac (10.5.6), 14 inch iBook G4 (10.4.11), 20 inch G4 iMac (10.4.11), Asus 'eee' (Linux), G3 Beige desktop Mac (8.6)
  • Roger Wilmut1 Level 9 (75,114 points)
    Incidentally, I also found that though Pages wouldn't open a Word Processing document which contained images and a text frame, it would if added the .cwk extension.
  • Peggy Level 8 (38,635 points)
    This is something I've done with almost all of my AppleWorks draw documents. I may have mentioned it here sometime ago. Yvan Koenig is working on an AppleScript to do this in batches. Just this week I've been testing it for him & it works well. I don't know if he has posted it on his iDisk yet.

  • Roger Wilmut1 Level 9 (75,114 points)
    Evidently I was posting old news... Oh well... I hadn't realized it was possible (it was the conversion to WP first that seemed to do the trick). And of course it still doesn't solve the serious Database problem.
  • Level 8 (41,790 points)

    Given what you wrote, I posted the scripts on my iDisk:

    For_iWork:iWork '

    At this time, the explanations aren't written.

    Two scripts are available:

    (1) export to Pages.
    It is fine if you have no objects crossing page boundaries.
    As Tables are restricted to 65 columns in Pages, if a spreadsheet frame was using more than that, a spreadsheet containing the complete frame is also created.

    (2) export to Numbers.
    It's interesting if you have objects crossing pages boundaries.
    Alas (1), in Numbers there is no way to wrap text around a shape
    Alas (2), when Numbers imports a spreadsheet containing table frames, it drops them I reported this silly feature to Apple but at this time we must live with it. So, the script pass the tables as pictures to be sure of their position and paste a true table which it exported in Pages. The user must adjust the bounds of these objects because I found no way to define the position of a graphic object in a Numbers document thru AppleScript.

    For those interested by the technique, the scripts copy every objects from the Draw document into a WP or a SS AW6 document then Pages or Numbers imports these new documents.

    Interesting enough, if the original Draw documents where made in old CW/AW it's not a problem. The script opens them in AW6 then save a copy in AW6 format so it may grab infos from the internals of a known structure.

    To use them, save them as 'application packages'.
    You may may run them and they will ask you to navigate to a folder containing the original draw documents.
    You may also drag the folder containing the files on the script's icon.

    I'm waiting your comments.
    Those needing explanations upon scrripts use may ask about "AppleScript" in the Finder's Help.
    They may also look at:

    Yvan KOENIG (from FRANCE vendredi 3 avril 2009 19:52:53)
  • Roger Wilmut1 Level 9 (75,114 points)
    I couldn't get draw2Pages to work. Having failed with drawings in landcape format, I tried again with a couple of draw documents in portrait format. They were in a folder called 'Test'.

    The script opened the original, the opened a new WP document in each case. However this remained in text mode. At this point the script stopped. The report said:

    iMac HD:Users:roger:Desktop:Test: can’t be identified !
    iMac HD:Users:roger:Desktop:Test: can’t be identified !

    In the Test folder were two new subfolders, each containing an AW document; however trying to open this produced 'Unexpected end of file'

    The same thing happened with draw2Numbers: in this case the new AW document remained in Spreadsheet mode with a cell selected, all other results were the same.

    The Test folder with the two originals is at
    (94 kB) should you wish to try it.
  • Level 8 (41,790 points)
    Thanks for the feedback.

    As I always gave an extension name to my documents I didn't saw that the script fails when original documents haven't the ".cwk" extension.

    I will treat them as old files and save them with the extension name so the original will remain absolutely as it was.

    May you test with the same folder after adding the extension names ?

    Here it behaves flawlessly.

    I must switch off for two hours but I hope that revised versions will be available before 20h (french hour).

    Yvan KOENIG (from FRANCE samedi 4 avril 2009 16:22:40)
  • Level 8 (41,790 points)

    Yes I know it's more than 20h (in France).

    I encountered problems with one of the Roger's sample files.
    At this time I don't understand why it fails.

    I also loose time searching a way to change the orientation of the temporary AW6 WP document in which I store the different items.

    I found a soluce but it requires the availability of "Extra" an application which add features to AppleScript.
    I need those moving the cursor and clickin in the Landscape button.

    The script which import in Numbers works well.
    I posted it on my iDisk.

    I just wish to add some refinements because I identified two potential problems.

    As I wrote, Numbers doesn't import the tables embedded in a spreadsheet so if the original document contains such items, I used an auxiliary Pages document in which I store the table.

    Alas, Pages has its own limits: it accepts only 65 columns in a table when AppleWorks allows 100.
    So, when a table is between 65 and 100 columns, I will create an auxiliary spreadsheet with the table contents so it will be easy to pass it in the final document.

    Now it's late and I am tired.

    See you tomorrow.

    Yvan KOENIG (from FRANCE samedi 4 avril 2009 23:42:31)
  • Roger Wilmut1 Level 9 (75,114 points)
    The business of adding .cwk is probably a red herring: the file I couldn't open until I'd added it was an AW template, so very probably Pages can't open templates - adding the extension may have got round that.

    I did wonder what would happen if the original was in landscape: the original version of the remotes had these two drawings in one document in landcape, but as it didn't work I copied them into two portrait draw documents (puzzlingly the text, which was Helvetica, changed to Times and I changed it back), but as I reported they still didn't work. I'll watch out for the revised scripts. (By the way the Numbers script didn't work for me either).
  • Roger Wilmut1 Level 9 (75,114 points)
    The revised version of the draw2Numbers script now works fine, without the need to add .cwk to the originals.
  • woodsbr3 Level 1 (0 points)

    I have just downloaded the appleworks to pages package from Yvan's idisk. Not knowing much about applescript, I have open the "draw2pages.applescript" and tried to save it as a script and tried to save it as an application bundle. Whenever I do though it comes up with a Syntax Error saying "Expected end of line but found property." The word 'version' is highlighted the file that is opened.

    What am I doing wrong - any help would be appreciated.

  • woodsbr3 Level 1 (0 points)
    Hi again

    Forgot to say - if I try to save it as an application, it just says "The document "draw2pages.applescript" could not be saved as "draw2pages".

  • Level 8 (41,790 points)
    You have to save from the Script Editor.

    You have also to read and apply the explanations given at the beginning.
    They urge you to install some auxiliary tools:

    "My Progress"
    "My Progress Bar script.scpt"

    If the apps are not installed, the scripts will not compile and you will be unable to save them as Script or Application (better to save as Application Bundle).
    As the used aux tools are different given the operating system, I will write two versions: one for 10.4.11, one for 10.5.6 and higher.

    Yvan KOENIG (from FRANCE mardi 14 avril 2009 11:01:52)
  • woodsbr3 Level 1 (0 points)
    Hi Yvan

    I've tried the save as application bundle in the Applescript editor but I get the syntax error happening when I click on Save. I am running 10.5.6 - all three of the apps you mentioned came with your downloaded package - should these be placed somewhere specific on my hard drive for it all to magically work - at the moment they are just in the AWdraw2iWork folder where they where originally appeared.

  • Level 8 (41,790 points)

    In the explanations I wrote

    (1) to be able to treat Landscape documents under 10.4.11, this script requires the availability of the application "Extra" in the Applications folder.

    but I failed to detail the locations for the tools required under 10.5.6…

    If you want to get the progress bar, you must install
    the application “My Progress”
    in the folder “Applications:Utilities”
    and “My Progress Bar script.scpt”
    in the folder “<startupVolume>:Users:<yourAccount>:Library:Scripts:”.

    I will edit that and the new versions will be available on my idisk.

    Yvan KOENIG (from FRANCE mardi 14 avril 2009 12:22:26)
Previous 1 2 3 Next