Re: Help about Word
Re: Help about Word
- Subject: Re: Help about Word
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 6 Jul 2007 21:27:58 +0200
Le 6 juil. 07 à 21:19:50, KOENIG Yvan a écrit :
Le 6 juil. 07 à 20:14:37, Michael J. Vinca a écrit :
Just a quick correction, it is textutil, and yes it converts from
doc => rtf as well.
Thanks.
I wrote this script but it doesn't do the task.
As I'm not acustomed to Shell, I don't see what is wrong.
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 POSIX path of original
set pdest to POSIX path of (dossier & nNom)
set theScript to "textutil -convert rtf -output pdest pOrig"
do shell script theScript
end translate
Thanks in advance.
Yvan KOENIG _
Hello
I made a few changes but it doesn't work:
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 POSIX path of original
set pdest to POSIX path of (dossier & nNom)
set theScript to "textutil -convert rtf -output " & pdest & " " &
pOrig
do shell script theScript
end translate
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