The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Applescript Gurus, I need your help

    Discussion in 'Apple and Mac OS X' started by Jitto, Jun 22, 2013.

  1. Jitto

    Jitto Notebook Consultant

    Reputations:
    19
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    30
    Hey there,

    I am trying to create an automator finder service where i can convert word documents (doc and dock) to pdf without actually going through the hassle of opening the document. I found the following script online, but even though it works the script actually requires the word application to be open to run the workflow. for instance, if i open word and then click on a document to convert it to pdf
    - will then only convert it to pdf.

    My request is can anyone please tell me the command as to how i can not have word open manually to run the script?

    -> http://onabai.wordpress.com/2012/07/10/convert-word-files-docdocx-to-pdf-in-osx/
     
  2. doh123

    doh123 Without ME its just AWESO

    Reputations:
    996
    Messages:
    3,727
    Likes Received:
    1
    Trophy Points:
    106
    yeah... this is just telling Word what to do so you don't have to click it. You can probably add a line at the beginning to tell Word to open up... so you don't have to open it manually. could be something as easy as adding in...

    tell application "Microsoft Word" to open

    then maybe at the end you can auto close it (which could cause problems if you aren't wanting it to close)
     
  3. Jitto

    Jitto Notebook Consultant

    Reputations:
    19
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    30
    Thank you very much for your reply and I appreciate it. Unfortunately IM such a noob when it comes to apple scripts that its embarrassing. I did what you said but it keeps giving this error and i have attached an image of this. If you get the time ca you please check and let me know as to what im doing wrong?

    View attachment 97910 View attachment 97910
     
  4. doh123

    doh123 Without ME its just AWESO

    Reputations:
    996
    Messages:
    3,727
    Likes Received:
    1
    Trophy Points:
    106
    the attachment link doesnt work...

    what is the error? you may need to add a delay statement so it'll wait until Word is fully open and ready.
     
  5. Jitto

    Jitto Notebook Consultant

    Reputations:
    19
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    30
    Terribly sorry about that. it seems like i have a problem with putting that line you mentieond in the correct location. Can you please see if this attachment is accessible?

    thanks again :)

    https://dl.dropboxusercontent.com/u/24314318/Untitled.png
     

    Attached Files:

  6. doh123

    doh123 Without ME its just AWESO

    Reputations:
    996
    Messages:
    3,727
    Likes Received:
    1
    Trophy Points:
    106
    i'd try it with the statement added inside the onrun section... before the set output line.
     
  7. Jitto

    Jitto Notebook Consultant

    Reputations:
    19
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    30
    Thanks for your input on this but unfortunately, the program keeps spitting out errors for every try. Guess, Ill just stick to having word open to then run the automator service.

    Appreciate your help. Cheers