11 Replies Latest reply: Mar 4, 2014 12:44 AM by qwedcxza0
gerryfromky  Level 1 Level 1 (0 points)

I want to bathc convert my Pages files to .doc.

IF you have suggestions re: Applescript, I am a total novice in that area.

 

Thnaks, Gerry


MacBook Air (11-inch Late 2010), Mac OS X (10.7.4)
  • Peggy Level 8 Level 8 (38,585 points)

    Go to Yvan Koenig's box.com account & download the batch_exportPages2DOC.zip AppleScript (third item at the link), unzip it & double-click.

     

    Peggy_sig.png

  • gerryfromky  Level 1 Level 1 (0 points)

    I downloaded the file and opened it with Applescript. When I run it, nothing seems ro happen. I do not receive any promtpts for files and/or folders to convert.

    Sorry to be such a nerd. I am usually fairly with it

  • Barry Level 7 Level 7 (29,215 points)

    Hi Gerry

     

    Yvan's scripts almost always contain instuctions in French and English. Have you read and followed them?

     

    Regards,

    Barry

  • Peggy Level 8 Level 8 (38,585 points)

    The English instructions say:

     

    Save the script as script or application bundle.

    Run it or drag and drop a folder icon on its icon.

    It opens every Pages's documents stored

    in the folder and save it as DOC file in a folder named "was_Pages_now_DOC".

    This one may be on the desktop or in the "~/Documents" folder.

    according to the property storeOnDesktop.

     

    This means that once the script opens in Script Editor go to File & Save As… then choose Script or Application Bundle from the File Format drop-down menu. I prefer Script, but try both if you'd like.

     

    AppleScript save.png

     

    Peggy_sig.png

  • gerryfromky  Level 1 Level 1 (0 points)

    OK, but still...

     

    I downloaded the file. File opens in Applescript format. I saved it as: 1) Script, pressed RUN button, bottom window indicated file was running, but again nothing happened, no prompt for file or folder to convert.**

    2) I also saved it as Application and got the scroll-like icon with a descending arrow. I dragged and drop a file folder with a few Pages files in it to see if that would work, I got the spinning rainbow wheel for a few minutes, and then got the message taht the Apple Event had timed out. Did not get any conversions with that one either.

     

    I know I ma a complete novice with Applescript. So maybe you have to take my hand and walk me through this becasue I am obviously missing something.

    I am working with Macbook Air OSX 10.7.4 and iMac OSX 10.7.3

     

    ** I was working with another Yvan conversion file and when I ran it (even without saving, I just ran it after I downloaded it) I was immedately prompted to choose a file/folder to work with. I was expecting teh same sort of prompt with this one.

     

    Thanks for your help.

  • Peggy Level 8 Level 8 (38,585 points)

    I double-clicked the expanded downloaded script & saved it as an Application on my Desktop. I then created a new folder & put three Paged documents in it for testing. I dragged this folder to the batch export app icon on my Desktop & let it run. When it was done I had a new folder on my Desktop as the instructions said I would with the documents now in .doc format. I did not click run in the script editor.

     

    Peggy_sig.png

  • gerryfromky  Level 1 Level 1 (0 points)

    Got it.

    Thank you so much.

  • smswise Level 1 Level 1 (0 points)

    Peggy- Not sure if you can assist me, but I'm having the same problem. I saved it out as an Application on my desktop. I dragged the new folder over the app, and the following error came up: "Can't set <<class uien>> of application to true."

     

    Any ideas? I've sent an email to Yvan, but not heard back yet. Thank you for any help in advance!!

  • PeterBreis0807 Level 7 Level 7 (33,460 points)

    If you have Pages 5 installed, this will not work.

     

    The AppleScript was written for Pages '09.

     

    Apple has removed most of the AppleScript support in Pages 5 and what is left is no doubt different.

     

    Peter

  • VikingOSX Level 6 Level 6 (10,945 points)

    I do not keep final form documents exclusively in Pages document format, opting instead, for an exported Word backup. Once bitten, twice shy.

  • qwedcxza0 Level 1 Level 1 (0 points)

    You can deal with the problem by trying to write an AppleScript script or using iWork Converter.


    http://tyorex.com/iWorkConverter