• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help about Word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help about Word


  • Subject: Re: Help about Word
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 8 Jul 2007 13:35:00 +0200


Le 6 juil. 07 à 21:33:22, KOENIG Yvan a écrit :

Youpi

This time it works:

property o : "Macintosh HD:Users:yvankoenig:Desktop:tarifs assurance Bouchard.doc"

set o to o as alias
if name extension of (info for o) is "doc" then my translate(o)

on translate(original)
tell application "Finder"
set dossier to (container of original) as Unicode text
set nom to name of original
set nNom to text 1 thru -4 of nom & "rtf"
end tell
set pOrig to quoted form of (POSIX path of original)
set pdest to quoted form of (POSIX path of (dossier & nNom))
set theScript to "textutil -convert rtf -output " & pdest & " " & pOrig
do shell script theScript
end translate


Thanks you everybody.


Hello

the original asker told me that the script works but that the conversion loose several documents attributes which are preserved when he does the conversion by hand in Word.

Is there somebody here knowing the way to drive Word so it will do the task automatically (a folder of about 500 files must be converted) ?

Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Help about Word
      • From: Paul Berkowitz <email@hidden>
References: 
 >Help about Word (From: KOENIG Yvan <email@hidden>)
 >Re: Help about Word (From: James Nierodzik <email@hidden>)
 >Re: Help about Word (From: "Michael J. Vinca" <email@hidden>)
 >Re: Help about Word (From: KOENIG Yvan <email@hidden>)
 >Re: Help about Word (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Ruth Bygrave has been ill
  • Next by Date: Re: Help about Word
  • Previous by thread: Re: Help about Word
  • Next by thread: Re: Help about Word
  • Index(es):
    • Date
    • Thread