• 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
Word Insert/Save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Protect servers / hard drives??? was Re: AppleScript-Users Digest, Vol 5, Issue 126 (From: Raymond P Reedy <email@hidden>)

  • Prev by Date: Re: Pathnames and opening files
  • Next by Date: Re: Pathnames and opening files
  • Previous by thread: Protect servers / hard drives??? was Re: AppleScript-Users Digest, Vol 5, Issue 126
  • Next by thread: osascript broken?
  • Index(es):
    • Date
    • Thread