Word Insert/Save
Word Insert/Save
- Subject: Word Insert/Save
- From: "Ruby Madraswala" <email@hidden>
- Date: Mon, 25 Feb 2008 14:32:13 -0500
HI
This is part of a script, everything works fine except for insert and save
command. OS 10.3.9 and Microsoft Word 2004. I want to insert some EPS files
into word document and save the document. Any suggestions appreciated.
Property skfile : "Macintosh HD:skfile"
tell application "Microsoft Word"
if file (skfile) exists then
delete file skfile
else
make new document
activate document
save document as "macintosh HD:skfile"
end if
end tell
set file1text1 to read file (TmpFile) from 1
set gterm1 to every paragraph of file1text1
repeat with aWord1 in gterm1
if aWord1 > "" then
set flname to "axxxx-" & word 1 of aWord1 & ".eps"
tell application "Microsoft Word"
activate document
insert picture file flname
end tell
end if
end repeat
tell application "Microsoft Word" to save document as skfile
tried
insert file flname
insert picture flname
Ruby
_______________________________________________
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