Re: MS word scripting
Re: MS word scripting
- Subject: Re: MS word scripting
- From: Stan Cleveland <email@hidden>
- Date: Mon, 20 Jul 2009 16:06:30 -0700
- Thread-topic: MS word scripting
On 7/20/09 3:19 PM, "Thomas Maffucci" wrote:
> I need some help with MS word scripting!
>
> I am attempting to script the following that works fine in the MS Word 2008
> GUI
> Insert - Picture - From File - select file from folder ( I actually know the
> name of the pic file) - Insert.
>
> All picture files are Graphic PDF Documents.
>
> I has tried both Make new Picture & Make new inline picture both get
> "Microsoft Word got an error: Can¹t make class inline picture. or Can¹t make
> class picture"
>
> make new picture at myDoc with properties {file name:"Macintosh
> HD:Users:Thomas:Desktop:Home pics:" & oldaddr, link to file:true, save with
> document:true}
> make new inline picture at myDoc with properties {file name:"Macintosh
> HD:Users:Thomas:Desktop:Home pics:" & oldaddr, link to file:true, save with
> document:true}
>
> Any help will be greatly appreciated
Hi Thomas,
This might get you going. Try targeting the document with a 'tell' statement
and including an 'at end' location parameter:
tell document 1 -- or perhaps tell myDoc
make new inline picture at end with properties {file name:"Macintosh
HD:Users: Thomas:Desktop:Home pics:" & oldaddr, link to file:true, save with
document:true}
end tell
A non-inline picture should work the same way, too.
HTH,
Stan C.
_______________________________________________
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