Re: Unable to open Word Mac documents in Hidden state
Re: Unable to open Word Mac documents in Hidden state
- Subject: Re: Unable to open Word Mac documents in Hidden state
- From: Stan Cleveland <email@hidden>
- Date: Thu, 21 Jan 2010 23:06:18 -0800
- Thread-topic: Unable to open Word Mac documents in Hidden state
On 1/21/10 10:30 PM, "SHIVANK AGGARWAL, Noida" wrote:
> I am unable to open a word Mac 2004/2008 document in hidden state as we can do
> by setting Visible = False in Windows VB.
>
> Is there any property which can make a word document invisible.
Hi Shivank,
The 'visible' property exists in Word's AppleScript dictionary, but it
appears to be non-functional. If you set 'visible' to false, nothing
changes. Aand after that, if you request the value of 'visible', it is still
set to true.
tell application "Microsoft Word"
set visible of window 1 of document 1 to false
visible of window 1 of document 1 --> true
end tell
An alternative would be to minimize the window into the dock. The following
code actually works.
tell application "Microsoft Word"
set collapsed of window 1 of document 1 to true
collapsed of window 1 of document 1 -- true
end tell
I'm using Word 2008, BTW.
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