Re: Insert Pic in MS WORD & information dialog
Re: Insert Pic in MS WORD & information dialog
- Subject: Re: Insert Pic in MS WORD & information dialog
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 08 Jul 2001 22:44:58 -0700
On 7/8/01 7:21 PM, "Goksel Kahraman" <email@hidden> wrote:
>
Hi everybody
>
>
Could you tell me how to insert pictures from given list of file names
>
in MS Word 2001 for Macintosh, please.
>
(My OS is 9.1 and I am using Smile 1.8.0)
>
>
this works OK
>
>
do Visual Basic " Selection.InlineShapes.AddPicture FileName:=\"My
>
Computer:Desktop Folder:Pics:Yin_Yang\", _
>
LinkToFile:=False, SaveWithDocument:=True"
>
>
>
but this does not
>
>
set myPic to "My Computer:Desktop Folder:Pics:Yin_Yang"
>
do Visual Basic " Selection.InlineShapes.AddPicture FileName:=myPic, _
>
LinkToFile:=False, SaveWithDocument:=True"
>
set myPic to "My Computer:Desktop Folder:Pics:Yin_Yang"
do Visual Basic "Selection.InlineShapes.AddPicture FileName:=" & myPic & ",
_
LinkToFile:=False, SaveWithDocument:=True"
(Watch the line break.)
>
>
****
>
>
Second Question is;
>
>
I want to display an information window for couple second to inform user
>
what's happening, How can i do this?
>
In applescript before the VB,
display dialog "Please wait a few moments while the script does its
stuff." buttons "Cancel", "OK"} default button "OK" with icon note
They have to click
"OK" before the script can move on. It doesn't stay up during the next
activity.
--
Paul Berkowitz